Function at 0x431ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
lea esi, [ebp - 0x54]
mov eax, 0x56e50c
call fcn.00528424
test bl, bl
je 0x431cc6
mov edx, dword [edi + 0x314]
jmp 0x431ccc
mov edx, dword [edi + 0x318]
mov edi, edx
mov eax, dword [edi + 0x22c]
call fcn.004eecf8
test eax, eax
jne 0x431d79
push 0x30
xor ecx, ecx
mov dword [ebp - 8], ecx
lea edx, [ebp - 8]
inc dword [esi + 0x1c]
mov eax, 0x5dd
call fcn.0051100c
cmp dword [ebp - 8], 0
je 0x431d03
mov ecx, dword [ebp - 8]
jmp 0x431d08
mov ecx, 0x56df3a
push ecx
xor eax, eax
mov word [esi + 0x10], 8
mov dword [ebp - 4], eax
mov eax, 0x2ee4
inc dword [esi + 0x1c]
lea edx, [ebp - 4]
call fcn.0051100c
cmp dword [ebp - 4], 0
je 0x431d2f
mov edx, dword [ebp - 4]
jmp 0x431d34
mov edx, 0x56df39
mov eax, dword [0x59bf1c]
pop ecx
mov eax, dword [eax]
call fcn.005376a4
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005378b8
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005378b8
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0xc0]
mov ecx, dword [esi]
mov dword fs:[0], ecx
jmp 0x432056
mov word [esi + 0x10], 0x14
xor eax, eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
inc dword [esi + 0x1c]
test bl, bl
je 0x431d95
mov eax, 0x2ee5
jmp 0x431d9a
mov eax, 0x2ee6
call fcn.0051100c
lea edx, [ebp - 0xc]
mov ecx, dword [0x59c3fc]
mov eax, dword [ecx + 0x33c]
add eax, 0x70
call fcn.005378e8
dec dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005378b8
mov word [esi + 0x10], 0x20
xor ecx, ecx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov eax, 0x2ee7
inc dword [esi + 0x1c]
call fcn.0051100c
lea edx, [ebp - 0x10]
mov eax, dword [0x59c3fc]
mov eax, dword [eax + 0x33c]
add eax, 0x60
call fcn.005378e8
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.005378b8
mov ecx, dword [0x59c3fc]
mov edx, 0x56df48
mov eax, dword [ecx + 0x33c]
mov dword [eax + 0x64], 1
mov word [esi + 0x10], 0x2c
lea eax, [ebp - 0x18]
call fcn.00537758
inc dword [esi + 0x1c]
lea edx, [ebp - 0x18]
push edx
test bl, bl
je 0x431e3f
mov edx, 0x56df3b
jmp 0x431e44
mov edx, 0x56df42
lea eax, [ebp - 0x14]
call fcn.00537758
inc dword [esi + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
inc dword [esi + 0x1c]
pop edx
call fcn.00537910
lea edx, [ebp - 0x1c]
mov eax, dword [0x59c3fc]
mov eax, dword [eax + 0x33c]
add eax, 0x78
call fcn.005378e8
dec dword [esi + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.005378b8
dec dword [esi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.005378b8
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.005378b8
mov ecx, dword [0x59c3fc]
mov eax, dword [ecx + 0x33c]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x43204d
mov word [esi + 0x10], 0x38
lea eax, [ebp - 0x24]
call fcn.0044a158
inc dword [esi + 0x1c]
xor edx, edx
mov word [esi + 0x10], 0x44
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov word [esi + 0x10], 0x50
mov dword [ebp - 0x28], edx
lea edx, [ebp - 0x28]
inc dword [esi + 0x1c]
mov eax, dword [0x59c3fc]
mov eax, dword [eax + 0x33c]
call fcn.004caeec
cmp dword [ebp - 0x28], 0
je 0x431f14
mov edx, dword [ebp - 0x28]
jmp 0x431f19
mov edx, 0x56df4d
push edx
call sub.KERNEL32.DLL_CreateFileA
cmp eax, 0xffffffff
mov dword [ebp - 0x58], eax
sete cl
and ecx, 1
lea eax, [ebp - 0x28]
push ecx
mov edx, 2
dec dword [esi + 0x1c]
call fcn.005378b8
pop ecx
test cl, cl
je 0x431f5f
dec dword [esi + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0044a1bc
mov ecx, dword [esi]
mov dword fs:[0], ecx
jmp 0x432056
mov word [esi + 0x10], 0x44
xor ebx, ebx
jmp 0x43201b
mov word [esi + 0x10], 0x68
mov edx, 0x56df4e
lea eax, [ebp - 0x30]
call fcn.00537758
inc dword [esi + 0x1c]
lea ecx, [ebp - 0x30]
push ecx
mov edx, ebx
mov eax, dword [edi + 0x22c]
call fcn.004eed28
add eax, 0x24
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x2c]
inc dword [esi + 0x1c]
pop edx
call fcn.00537910
dec dword [esi + 0x1c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.005378b8
mov word [esi + 0x10], 0x5c
push 0
lea eax, [ebp - 0x5c]
push eax
cmp dword [ebp - 0x2c], 0
je 0x431fd1
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx - 4]
jmp 0x431fd3
xor eax, eax
push eax
cmp dword [ebp - 0x2c], 0
je 0x431fdf
mov edx, dword [ebp - 0x2c]
jmp 0x431fe4
mov edx, 0x56df51
push edx
mov eax, dword [ebp - 0x58]
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x432004
dec dword [esi + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.005378b8
jmp 0x43202e
dec dword [esi + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.005378b8
mov word [esi + 0x10], 0x44
inc ebx
mov eax, dword [edi + 0x22c]
call fcn.004eecf8
cmp ebx, eax
jl 0x431f6c
mov edx, dword [ebp - 0x58]
push edx
call sub.KERNEL32.DLL_CloseHandle
dec dword [esi + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0044a1bc
mov word [esi + 0x10], 0
mov ecx, dword [esi]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret