Function at 0x411b36
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x574
mov eax, dword [0x439450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push 0x1060
push esi
push 0x43cab0
mov dword [ebp - 0x570], eax
mov dword [ebp - 0x55c], esi
mov dword [ebp - 0x560], esi
mov dword [ebp - 0x568], esi
call fcn.00416670
mov ebx, dword [0x439394]
add esp, 0xc
mov dword [ebp - 0x56c], esi
cmp ebx, esi
jbe 0x411cdb
mov eax, dword [0x439398]
mov ecx, dword [ebp - 0x56c]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x411cc9
mov ecx, dword [edi + 8]
xor eax, eax
test ecx, ecx
je 0x411bc2
mov dl, byte [ecx]
test dl, dl
je 0x411bc2
cmp dl, 0x5c
je 0x411bc2
movsx edx, dl
add eax, edx
inc ecx
jne 0x411baf
xor edx, edx
mov ecx, 0x418
div ecx
lea esi, [edx*4 + 0x43cab0]
mov ebx, dword [esi]
jmp 0x411bf7
mov eax, dword [ebx + 8]
mov ecx, dword [edi + 8]
mov edx, dword [eax + 0x1c]
cmp edx, dword [ecx + 0x1c]
jne 0x411bf1
push ecx
push eax
call fcn.004164fa
pop ecx
pop ecx
test eax, eax
je 0x411c4e
mov eax, dword [ebx + 8]
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x411bd6
push dword [edi + 8]
call fcn.004167a0
pop ecx
cmp eax, dword [ebp - 0x568]
jbe 0x411c12
mov dword [ebp - 0x568], eax
mov ebx, dword [esi]
and dword [ebp - 0x574], 0
test ebx, ebx
je 0x411c6c
push dword [edi + 8]
push dword [ebx + 8]
call fcn.004164fa
pop ecx
pop ecx
test eax, eax
js 0x411c40
jne 0x411c6c
mov ecx, dword [ebx + 8]
mov eax, dword [edi + 8]
mov ecx, dword [ecx + 0x1c]
cmp ecx, dword [eax + 0x1c]
jae 0x411c6c
mov eax, dword [ebx + 8]
mov dword [ebp - 0x574], ebx
mov ebx, dword [eax + 0x30]
jmp 0x411c1b
mov eax, dword [ebx + 8]
inc dword [eax + 0x28]
mov eax, dword [edi]
mov ebx, dword [ebx + 8]
add dword [ebx + 0x34], eax
mov eax, dword [edi]
add dword [ebp - 0x55c], eax
add dword [ebp - 0x560], eax
jmp 0x411cb8
mov eax, dword [ebp - 0x574]
test eax, eax
je 0x411c84
mov eax, dword [eax + 8]
mov dword [eax + 0x30], edi
mov eax, dword [edi + 8]
mov dword [eax + 0x30], ebx
jmp 0x411c8e
mov eax, dword [edi + 8]
mov ecx, dword [esi]
mov dword [eax + 0x30], ecx
mov dword [esi], edi
mov eax, dword [edi + 8]
mov dword [eax + 0x28], 1
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov dword [eax + 0x34], ecx
mov eax, dword [edi]
mov ecx, dword [ebp - 0x560]
add dword [ebp - 0x55c], eax
lea eax, [ecx + eax + 0xc]
mov dword [ebp - 0x560], eax
mov edi, dword [edi + 4]
test edi, edi
jne 0x411ba6
mov ebx, dword [0x439394]
inc dword [ebp - 0x56c]
cmp dword [ebp - 0x56c], ebx
jb 0x411b90
mov edx, dword [0x43c830]
add dword [ebp - 0x568], 9
xor esi, esi
test edx, edx
je 0x411d03
push esi
call fcn.0041176e
imul eax, eax, 0x3c
add dword [ebp - 0x560], eax
inc esi
pop ecx
cmp esi, edx
jb 0x411cee
cmp dword [0x439398], 0x43c5d0
mov eax, dword [ebp - 0x560]
lea esi, [eax + edx*4]
je 0x411d1b
lea esi, [esi + ebx*4]
add esi, 0x40
cmp dword [0x4393a4], 0x43c610
je 0x411d32
mov eax, dword [0x4393a0]
lea esi, [esi + eax*4]
add esi, 0x10
push 0
push esi
call fcn.00411611
pop ecx
pop ecx
push eax
push 0x4311b8
call fcn.004087f7
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
push eax
lea eax, [ebp - 0x454]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
push 0
lea ecx, [ebp - 0x564]
push ecx
push eax
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x570]
call edi
push 0
push dword [ebp - 0x55c]
call fcn.00411611
pop ecx
pop ecx
push eax
push 0x431190
call fcn.004087f7
pop ecx
push eax
lea eax, [ebp - 0x454]
push eax
call ebx
add esp, 0xc
push 0
lea ecx, [ebp - 0x564]
push ecx
push eax
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x570]
call edi
sub esi, dword [ebp - 0x55c]
push 0
push esi
call fcn.00411611
pop ecx
pop ecx
push eax
push 0x431164
call fcn.004087f7
pop ecx
push eax
lea eax, [ebp - 0x454]
push eax
call ebx
mov esi, dword [ebp - 0x570]
add esp, 0xc
push 0
lea ecx, [ebp - 0x564]
push ecx
push eax
lea eax, [ebp - 0x454]
push eax
push esi
call edi
push dword [ebp - 0x568]
lea eax, [ebp - 0x454]
push 0x20
push eax
call fcn.00416670
add esp, 0xc
push 0
lea eax, [ebp - 0x564]
push eax
push dword [ebp - 0x568]
lea eax, [ebp - 0x454]
push eax
push esi
call edi
push 0x431134
call fcn.004087f7
push eax
lea eax, [ebp - 0x454]
push eax
call ebx
add esp, 0xc
push 0
lea ecx, [ebp - 0x564]
push ecx
push eax
lea eax, [ebp - 0x454]
push eax
push esi
call edi
push 0x43111c
call fcn.004087f7
push eax
lea eax, [ebp - 0x454]
push eax
call ebx
add esp, 0xc
push 0
lea ecx, [ebp - 0x564]
push ecx
push eax
mov dword [ebp - 0x55c], eax
lea eax, [ebp - 0x454]
push eax
push esi
call edi
mov eax, dword [ebp - 0x55c]
cmp dword [ebp - 0x568], eax
jae 0x411ea4
lea ecx, [eax + 1]
mov dword [ebp - 0x568], ecx
mov ecx, dword [ebp - 0x568]
sub ecx, eax
push ecx
lea eax, [ebp - 0x454]
push 0x20
push eax
mov dword [ebp - 0x55c], ecx
call fcn.00416670
add esp, 0xc
push 0
lea eax, [ebp - 0x564]
push eax
push dword [ebp - 0x55c]
lea eax, [ebp - 0x454]
push eax
push esi
call edi
push 0x4310e4
call fcn.004087f7
push eax
lea eax, [ebp - 0x454]
push eax
call ebx
add esp, 0xc
push 0
lea ecx, [ebp - 0x564]
push ecx
push eax
lea eax, [ebp - 0x454]
push eax
push esi
call edi
and dword [ebp - 0x56c], 0
mov eax, dword [ebp - 0x56c]
mov esi, dword [eax + 0x43cab0]
mov dword [ebp - 0x560], esi
test esi, esi
je 0x4120b3
jmp 0x411f31
mov esi, dword [ebp - 0x560]
mov byte [ebp - 0x558], 0
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x411f68
mov eax, dword [0x43c774]
test eax, eax
je 0x411f68
push ecx
call eax
pop ecx
test eax, eax
je 0x411f68
push eax
lea eax, [ebp - 0x558]
push 0x104
push eax
call fcn.0041687f
add esp, 0xc
mov eax, dword [esi + 8]
push dword [eax + 0x1c]
push eax
call fcn.00411426
push eax
lea eax, [ebp - 0x454]
push 0x42fc74
push eax
call ebx
add esp, 0x14
push 0
lea ecx, [ebp - 0x564]
push ecx
push eax
mov dword [ebp - 0x55c], eax
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x570]
call edi
mov eax, dword [ebp - 0x568]
sub eax, dword [ebp - 0x55c]
push eax
mov dword [ebp - 0x55c], eax
lea eax, [ebp - 0x454]
push 0x20
push eax
call fcn.00416670
add esp, 0xc
push 0
lea eax, [ebp - 0x564]
push eax
push dword [ebp - 0x55c]
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x570]
call edi
cmp byte [ebp - 0x558], 0
je 0x412003
lea eax, [ebp - 0x558]
mov dword [ebp - 0x574], eax
mov eax, 0x42be24
jmp 0x41200e
mov eax, 0x42be24
mov dword [ebp - 0x574], eax
cmp byte [ebp - 0x558], 0
mov edx, 0x4310e0
jne 0x41201e
mov edx, eax
push dword [ebp - 0x574]
mov ecx, dword [esi + 8]
push edx
push eax
mov eax, dword [ecx + 0x20]
push dword [eax*4 + 0x439360]
mov eax, dword [ecx + 0x34]
xor edx, edx
div dword [ecx + 0x28]
push 0
lea esi, [ebp - 0x54]
mov dword [ebp - 0x55c], ecx
push eax
call fcn.004114a0
pop ecx
pop ecx
push eax
mov eax, dword [ebp - 0x55c]
push dword [eax + 0x28]
lea esi, [ebp - 0x2c]
push 0
push dword [eax + 0x34]
call fcn.004114a0
pop ecx
pop ecx
push eax
push 0x4310b8
call fcn.004087f7
pop ecx
push eax
lea eax, [ebp - 0x454]
push eax
call ebx
add esp, 0x24
push 0
lea ecx, [ebp - 0x564]
push ecx
push eax
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x570]
call edi
mov eax, dword [ebp - 0x560]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x560], eax
test eax, eax
jne 0x411f2b
add dword [ebp - 0x56c], 4
cmp dword [ebp - 0x56c], 0x1060
jb 0x411f0f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416261
leave
ret