Function at 0x4319a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0xec8960]
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 0x431c16
push 0
lea eax, [ebp - 8]
push eax
push 0x1b000
push 0xe7ff88
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 0x431c16
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 0x431a40
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.0048e18c
add esp, 8
test eax, eax
je 0x431b38
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.0048e18c
mov ecx, eax
add esp, 8
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x431b38
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 0x431a55
cmp dword [ebp - 0x2c], 0
je 0x431b1d
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x431b1d
push esi
call fcn.004977d8
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 0x431b38
mov ebx, dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x2c]
push eax
call fcn.0048ac10
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 0x431b2f
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 0x431bdc
xor ecx, ecx
test edi, edi
je 0x431b5e
nop dword [eax]
add edx, 4
add edx, dword [esi + ecx*4]
inc ecx
cmp ecx, edi
jb 0x431b50
mov dword [ebp - 0x14], edx
push edx
call fcn.004977d8
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x431bd1
test edi, edi
je 0x431bb4
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.0048ac10
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 0x431b81
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 0x431bd6
push 1
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_EndUpdateResourceW]
xor esi, esi
test edi, edi
je 0x431c03
push dword [ebx + esi*4]
call fcn.0048e011
inc esi
add esp, 4
cmp esi, edi
jb 0x431be2
push ebx
call fcn.0048e011
push dword [ebp - 0x10]
call fcn.0048e011
add esp, 8
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004888df
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.004888df
mov esp, ebp
pop ebp
ret