Function at 0x431960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0xec8980]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
mov eax, edx
mov dword [ebp - 0x2c], ecx
push 0x40000000
push eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x431bd6
push 0
lea eax, [ebp - 8]
push eax
push 0x1b000
push 0xe7ffc0
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
jne 0x431bd6
push ebx
xor edi, edi
xor ebx, ebx
push edi
push dword [ebp - 0x28]
xor esi, esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov dword [ebp - 0x30], eax
test eax, eax
mov eax, dword [ebp - 0x28]
mov ecx, 0x65
cmovne eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431a00
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0x1c], eax
xor ecx, ecx
lea eax, [edi + 1]
mov dword [ebp - 0x24], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push ebx
call fcn.0048e65c
add esp, 8
test eax, eax
je 0x431af8
mov ebx, eax
xor ecx, ecx
mov eax, dword [ebp - 0x24]
mov edx, 4
mul edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
seto cl
neg ecx
or ecx, eax
push ecx
push esi
call fcn.0048e65c
mov ecx, eax
add esp, 8
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x431af8
mov eax, dword [ebp - 0x24]
mov esi, ecx
mov dword [ebx + edi*4], 0
mov edx, ebx
mov dword [ecx + edi*4], 0
mov edi, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
cmp eax, 1
jb 0x431a15
cmp dword [ebp - 0x2c], 0
je 0x431add
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x431add
push esi
call fcn.00497dea
mov esi, dword [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
test eax, eax
je 0x431af8
mov ebx, dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x2c]
push eax
call fcn.0048b0e0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov dword [ecx], eax
mov eax, esi
mov dword [eax], ebx
mov ebx, ecx
jmp 0x431aef
mov dword [edx], 0
mov edi, eax
mov dword [ecx], 0
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], edi
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x30], edx
je 0x431b9c
xor ecx, ecx
test edi, edi
je 0x431b1e
nop dword [eax]
add edx, 4
add edx, dword [esi + ecx*4]
inc ecx
cmp ecx, edi
jb 0x431b10
mov dword [ebp - 0x14], edx
push edx
call fcn.00497dea
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x431b91
test edi, edi
je 0x431b74
mov ecx, ebx
mov dword [ebp - 0x20], edi
sub ecx, dword [ebp - 0x10]
mov ebx, eax
mov dword [ebp - 0x34], ecx
xor edi, edi
mov eax, dword [esi]
mov dword [ebx + edi], eax
lea eax, [ebx + 4]
push dword [esi]
add eax, edi
push dword [ecx + esi]
push eax
call fcn.0048b0e0
mov ecx, dword [ebp - 0x34]
lea esi, [esi + 4]
add edi, 4
add esp, 0xc
add edi, dword [esi - 4]
sub dword [ebp - 0x20], 1
jne 0x431b41
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
push eax
push 0x409
push dword [ebp - 0x28]
push 0xa
push esi
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push 0
push esi
jmp 0x431b96
push 1
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
xor esi, esi
test edi, edi
je 0x431bc3
push dword [ebx + esi*4]
call fcn.0048e4e1
inc esi
add esp, 4
cmp esi, edi
jb 0x431ba2
push ebx
call fcn.0048e4e1
push dword [ebp - 0x10]
call fcn.0048e4e1
add esp, 8
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488f09
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00488f09
mov esp, ebp
pop ebp
ret