Function at 0x4355c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x4355d7
xor al, al
jmp 0x435928
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4355dd
sub eax, edx
je 0x4355d0
cmp dword [ebx + 0x360], edi
je 0x4355d0
push 0x45c004
push dword [ebp + 8]
call fcn.00440b2e
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
je 0x4355d0
lea esi, [ebx + 0x394]
cmp dword [esi], edi
jne 0x435620
push 0x457bc7
xor eax, eax
mov edi, ebx
call fcn.00435d23
mov dword [esi], eax
mov esi, dword [esi]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x435627
push dword [ebp - 4]
sub eax, ecx
mov edi, eax
push edi
push 1
push esi
call fcn.00442286
add esp, 0x10
cmp eax, edi
je 0x435654
push dword [ebp - 4]
call fcn.004412af
xor al, al
jmp 0x435927
mov eax, 0x459c8c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43565c
mov edi, dword [ebp - 4]
sub eax, edx
push edi
mov esi, eax
push esi
push 1
push 0x459c8c
call fcn.00442286
add esp, 0x10
cmp eax, esi
je 0x435682
push edi
jmp 0x435648
mov eax, dword [ebx + 0x35c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
shl eax, 2
push eax
call fcn.0043f4d3
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4355d0
mov ecx, dword [ebx + 0x35c]
mov ecx, dword [ecx]
xor eax, eax
cmp dword [ecx + 0xc], eax
jbe 0x43577a
mov ecx, dword [ebx + 0x35c]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + eax*4]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x10]
mov dword [edx + eax*4], ecx
inc eax
mov dword [ebp + 8], eax
cmp dword [ebp - 0xc], eax
jbe 0x43571b
test ecx, ecx
je 0x435766
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4356e4
sub eax, esi
push edi
mov esi, eax
push esi
push 1
push ecx
call fcn.00442286
add esp, 0x10
push edi
cmp eax, esi
jne 0x435648
push 1
push 1
push 0x459c8c
call fcn.00442286
add esp, 0x10
cmp eax, 1
jmp 0x435759
test ecx, ecx
je 0x435766
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x435724
sub eax, esi
push edi
mov esi, eax
push esi
push 1
push ecx
call fcn.00442286
add esp, 0x10
push edi
cmp eax, esi
jne 0x435648
push 2
push 1
push 0x459c90
call fcn.00442286
add esp, 0x10
cmp eax, 2
push edi
jne 0x435648
call fcn.00441f67
pop ecx
mov ecx, dword [ebx + 0x35c]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
cmp eax, dword [ecx + 0xc]
jb 0x4356b8
xor eax, eax
cmp dword [ebx + 0x360], eax
jbe 0x435916
mov ecx, dword [ebx + 0x35c]
mov ecx, dword [ecx + eax*4]
mov edi, dword [ecx]
inc eax
cmp eax, dword [ebx + 0x124]
mov dword [ebp - 0x14], edi
setb byte [ebp + 0xb]
mov dword [ebp - 0x20], eax
test edi, edi
je 0x4357f5
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4357ad
push dword [ebp - 4]
sub eax, edx
mov esi, eax
push esi
push 1
push edi
call fcn.00442286
add esp, 0x10
push dword [ebp - 4]
cmp eax, esi
jne 0x435648
push 1
push 1
push 0x459c8c
call fcn.00442286
add esp, 0x10
push dword [ebp - 4]
cmp eax, 1
jne 0x435648
call fcn.00441f67
pop ecx
xor eax, eax
cmp dword [ebp - 0xc], eax
jbe 0x4358e7
lea ecx, [eax + 1]
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebp - 0xc]
jae 0x435814
mov dword [ebp - 8], 0x459c8c
jmp 0x435828
cmp byte [ebp + 0xb], 0
mov dword [ebp - 8], 0x457bc7
jne 0x435828
mov dword [ebp - 8], 0x459c90
mov ecx, dword [ebp - 0x10]
mov esi, dword [ecx + eax*4]
push 0
push esi
push edi
mov eax, ebx
call fcn.00432e56
test eax, eax
je 0x4358db
push 0
push esi
push edi
mov eax, ebx
call fcn.00432e56
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43584f
sub eax, ecx
mov edi, eax
mov eax, dword [ebp - 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x435860
push dword [ebp - 4]
sub eax, ecx
push edi
push 1
push ecx
push 0
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, ebx
call fcn.00432e56
pop ecx
push eax
call fcn.00442286
add esp, 0x10
cmp eax, edi
jne 0x435645
mov esi, dword [ebp - 8]
test esi, esi
je 0x4358cf
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43589e
sub eax, edx
je 0x4358cf
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4358ae
push dword [ebp - 4]
sub eax, ecx
push eax
push 1
push esi
call fcn.00442286
add esp, 0x10
cmp eax, dword [ebp - 0x18]
jne 0x435645
push dword [ebp - 4]
call fcn.00441f67
mov edi, dword [ebp - 0x14]
pop ecx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xc]
jb 0x435800
push dword [ebp - 4]
push 2
push 1
push 0x459c90
call fcn.00442286
add esp, 0x10
cmp eax, 2
jne 0x435645
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 0x360]
jb 0x435788
mov edi, dword [ebp - 4]
push edi
call fcn.004412af
pop ecx
push dword [ebp - 0x10]
call fcn.0043fe48
mov al, 1
pop ecx
pop edi
pop esi
leave
ret 4