Function at 0x43e950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], edi
test esi, esi
je 0x43eaa4
cmp dword [ebp + 0xc], 0xffffffff
je 0x43eaa4
cmp dword [edi + 0xbc], 2
jne 0x43eaa4
mov al, byte [0x644405]
cmp al, 0x36
ja 0x43eaa4
test al, al
je 0x43eaa4
inc dword [edi + 0xc418]
mov eax, dword [edi + 0xc418]
mov edx, dword [edi + 0x338]
mov edx, dword [edx + 0x1b0]
lea ecx, [edi + 0x338]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x28]
push eax
call edx
cmp byte [0x644406], 4
mov dword [ebp - 0xc], eax
jne 0x43eae1
mov al, byte [esi + 0x32]
cmp al, 0xb
je 0x43e9db
cmp al, 0xa
jne 0x43eae1
mov ecx, dword [esi + 0x2c]
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x43eaa4
mov eax, dword [esi + 0x34]
mov eax, dword [eax - 0xc]
mov ecx, dword [ecx]
lea ebx, [ecx + eax + 0x111]
push ebx
call fcn.004898a6
mov edi, eax
add esp, 4
test edi, edi
je 0x43eaa4
push ebx
push 0
push edi
call fcn.005afd80
sub esp, 0x2c
mov eax, esi
mov esi, esp
mov dword [ebp - 0x1c], esp
call fcn.0040caa0
lea ecx, [edi + 0x14]
call fcn.00446130
mov edx, dword [ebp + 0x10]
mov ecx, dword [edi + 0x44]
mov eax, dword [ebp - 8]
sub esp, 0xe8
mov dword [edi + 0x3c], edx
mov edx, esp
lea esi, [ecx + edi + 0x58]
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 0x10], esp
push edx
mov dword [edi + 0x40], eax
call fcn.00419810
mov ebx, esi
call fcn.00446030
mov eax, dword [esi + 0x24]
mov ecx, dword [edi + 0x44]
mov dword [edi + 0x4c], eax
lea eax, [ecx + eax + 0x44]
mov dword [edi + 0x50], eax
mov esi, edi
mov dword [edi + 0x48], 0xec
mov dword [esi + 0xc], eax
xor ebx, ebx
add eax, 0x14
mov dword [esi + 8], ebx
mov dword [esi], 0xe7
mov dword [esi + 4], eax
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x4c]
lea ecx, [ecx + edx + 0x44]
add esp, 0x120
cmp dword [edi + 0x50], ecx
je 0x43eaaf
push esi
call fcn.0048989b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
lea edx, [ebp - 0x18]
push edx
push eax
mov eax, dword [ebp + 0xc]
push esi
push eax
mov dword [ebp - 0x18], ebx
call sub.KERNEL32.dll_WriteFile
nop
push esi
mov edi, eax
call fcn.0048989b
add esp, 4
cmp edi, ebx
jne 0x43eb9f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esi + 0x32], 7
je 0x43eba5
mov ecx, dword [esi + 0x34]
mov edi, dword [ecx - 0xc]
add edi, 0x61
push edi
call fcn.004898a6
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x43eaa4
push edi
push 0
push ebx
call fcn.005afd80
sub esp, 0x2c
mov eax, esi
mov esi, esp
mov dword [ebp - 0x1c], esp
call fcn.0040caa0
lea ecx, [ebx + 0x14]
call fcn.00446130
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x44]
xor esi, esi
add eax, 0x44
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x48], esi
mov dword [ebx + 0xc], eax
add eax, 0x14
mov dword [ebx + 8], esi
mov dword [ebx], 0xe7
mov dword [ebx + 4], eax
mov ecx, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x44]
lea ecx, [ecx + edx + 0x44]
add esp, 0x38
cmp dword [ebx + 0x50], ecx
je 0x43eb78
push ebx
call fcn.0048989b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
lea edx, [ebp - 0x18]
push edx
push eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
mov dword [ebp - 0x18], esi
call sub.KERNEL32.dll_WriteFile
nop
push ebx
mov edi, eax
call fcn.0048989b
add esp, 4
cmp edi, esi
je 0x43eaa4
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov edx, dword [edi + 0x338]
mov eax, dword [esi + 0x28]
mov edx, dword [edx + 0x18c]
lea ecx, [edi + 0x338]
push eax
call edx
test eax, eax
je 0x43ecc9
mov ecx, dword [eax + 0x38]
mov esi, dword [esi + 0x2c]
mov edx, dword [eax + 0x3c]
shr ecx, 2
mov dword [ebp + 8], esi
cmp ecx, 0x20
ja 0x43ebdc
lea edx, [eax + 0x3c]
test ecx, ecx
je 0x43ecc9
test edx, edx
je 0x43ecc9
test esi, esi
je 0x43ecc9
mov eax, dword [esi + 0x34]
mov ebx, dword [eax - 0xc]
add ebx, 0x61
push ebx
call fcn.004898a6
mov edi, eax
add esp, 4
test edi, edi
je 0x43eaa4
push ebx
push 0
push edi
call fcn.005afd80
sub esp, 0x2c
mov eax, esi
mov esi, esp
mov dword [ebp - 0x1c], esp
call fcn.0040caa0
lea ecx, [edi + 0x14]
call fcn.00446130
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc418]
mov eax, dword [ebp - 8]
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x44]
xor esi, esi
add eax, 0x44
mov dword [edi + 0x50], eax
mov dword [edi + 0x3c], edx
mov dword [edi + 0x4c], esi
mov dword [edi + 0x48], esi
mov dword [edi + 0xc], eax
add eax, 0x14
mov dword [edi + 8], esi
mov dword [edi], 0xe7
mov dword [edi + 4], eax
mov ecx, dword [edi + 0x4c]
mov edx, dword [edi + 0x44]
lea ecx, [ecx + edx + 0x44]
add esp, 0x38
cmp dword [edi + 0x50], ecx
jne 0x43ecb2
push esi
lea edx, [ebp + 0x10]
push edx
push eax
mov eax, dword [ebp + 0xc]
push edi
push eax
mov dword [ebp + 0x10], esi
call sub.KERNEL32.dll_WriteFile
nop
push edi
mov ebx, eax
call fcn.0048989b
add esp, 4
cmp ebx, esi
je 0x43eaa4
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x2c]
mov dword [ebp + 8], eax
cmp eax, esi
je 0x43ecc6
mov esi, eax
jmp 0x43ebf4
push edi
call fcn.0048989b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp - 4]
cmp dword [ebp - 0xc], 0
je 0x43ed21
mov edx, dword [edi + 0x338]
mov ebx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18c]
push ebx
lea ecx, [edi + 0x338]
call eax
test eax, eax
je 0x43ed03
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push eax
mov ecx, edi
call fcn.0043e950
test eax, eax
je 0x43eaa4
mov eax, dword [edi + 0x338]
mov edx, dword [eax + 0x1ac]
push 1
push ebx
lea ecx, [edi + 0x338]
call edx
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x43eccf
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc