Function at 0x42cfb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x49e5d8]
push edi
mov edi, dword [0x49e5dc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x42d4a1
push ebx
mov ebx, dword [edi + 0x438]
push esi
test ebx, ebx
je 0x42d0d2
cmp dword [ebx + 0x224], 0
je 0x42d09e
mov ecx, dword [ebx + 0x20c]
mov edx, dword [ebx + 0x208]
lea eax, [ecx + 1]
cmp eax, edx
jbe 0x42d02b
lea eax, [edx + 0x400]
push eax
push dword [ebx + 0x204]
call fcn.00464c7f
mov ecx, dword [ebx + 0x20c]
add esp, 8
add dword [ebx + 0x208], 0x400
mov dword [ebx + 0x204], eax
mov eax, dword [ebx + 0x204]
mov byte [ecx + eax], 0
inc dword [ebx + 0x20c]
mov eax, dword [ebx + 0x220]
test eax, eax
je 0x42d09e
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x42d09e
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x10]
push 0
push ecx
push 2
lea ecx, [ebx + 0x21c]
push ecx
push eax
call esi
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 0x20c]
push dword [ebx + 0x204]
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x220]
test eax, eax
je 0x42d0b1
push eax
call fcn.00464c8a
add esp, 4
mov eax, dword [ebx + 0x204]
test eax, eax
je 0x42d0c4
push eax
call fcn.00464c8a
add esp, 4
push 0x228
push ebx
call fcn.004611d6
add esp, 8
mov eax, dword [edi + 0x488]
test eax, eax
je 0x42d0ef
push eax
call fcn.00464c8a
add esp, 4
mov dword [edi + 0x488], 0
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x8d0]
test eax, eax
je 0x42d10f
push eax
call fcn.00464c8a
add esp, 4
mov dword [ebx + 0x8d0], 0
mov esi, dword [ebx + 0x480]
cmp word [esi], 0xffff
je 0x42d13f
nop dword [eax + eax]
mov eax, dword [esi + 0x8e]
test eax, eax
je 0x42d133
push eax
call fcn.00464c8a
add esp, 4
add esi, 0x92
cmp word [esi], 0xffff
jne 0x42d120
mov eax, dword [ebx + 0x480]
test eax, eax
je 0x42d15c
push eax
call fcn.00464c8a
add esp, 4
mov dword [ebx + 0x480], 0
mov eax, dword [ebx + 0x8d4]
test eax, eax
je 0x42d179
push eax
call fcn.00464c8a
add esp, 4
mov dword [ebx + 0x8d4], 0
mov eax, dword [ebx + 0x8cc]
test eax, eax
je 0x42d196
push eax
call fcn.00464c8a
add esp, 4
mov dword [ebx + 0x8cc], 0
mov eax, dword [edi + 0x420]
test eax, eax
je 0x42d1b3
push eax
call fcn.00464c8a
add esp, 4
mov dword [edi + 0x420], 0
mov eax, dword [0x49e5dc]
mov dword [ebp - 8], eax
mov esi, dword [eax + 0x48c]
test esi, esi
je 0x42d206
xor ebx, ebx
cmp dword [eax + 0x490], ebx
jle 0x42d1f0
mov edi, eax
push dword [esi]
call fcn.00464c8a
inc ebx
lea esi, [esi + 0xa]
add esp, 4
cmp ebx, dword [edi + 0x490]
jl 0x42d1d1
mov esi, dword [edi + 0x48c]
mov edi, dword [ebp - 0xc]
push esi
call fcn.00464c8a
mov eax, dword [ebp - 8]
add esp, 4
mov dword [eax + 0x48c], 0
mov ebx, dword [edi + 0x466]
test ebx, ebx
je 0x42d25c
xor esi, esi
cmp dword [ebx], esi
jle 0x42d241
cmp esi, dword [ebx + 4]
jge 0x42d23c
mov eax, dword [ebx + 8]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x42d23c
push dword [eax]
call fcn.00464c8a
push 0x18
push dword [ebp - 0x10]
call fcn.004611d6
add esp, 0xc
inc esi
cmp esi, dword [ebx]
jl 0x42d216
mov eax, dword [ebx + 8]
test eax, eax
je 0x42d251
push eax
call fcn.00464c8a
add esp, 4
push 0xc
push ebx
call fcn.004611d6
add esp, 8
mov eax, dword [ebp - 4]
mov dword [eax + 0x78], 0
push dword [edi + 0x127c]
call fcn.00464c8a
mov esi, dword [edi + 0x1294]
add esp, 4
test esi, esi
je 0x42d2d3
mov eax, dword [esi]
test eax, eax
je 0x42d2c8
mov ecx, dword [esi + 8]
sub ecx, eax
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x42d2aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d4a6
mov eax, edx
push ecx
push eax
call fcn.004611d6
mov dword [esi], 0
add esp, 8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0xc
push esi
call fcn.004611d6
add esp, 8
mov esi, dword [edi + 0x1298]
mov dword [edi + 0x1294], 0
test esi, esi
je 0x42d33c
mov eax, dword [esi]
test eax, eax
je 0x42d331
mov ecx, dword [esi + 8]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x42d313
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d4a6
mov eax, edx
push ecx
push eax
call fcn.004611d6
mov dword [esi], 0
add esp, 8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0xc
push esi
call fcn.004611d6
add esp, 8
mov ebx, dword [edi + 0x129c]
mov dword [edi + 0x1298], 0
test ebx, ebx
je 0x42d3db
mov esi, dword [ebx]
test esi, esi
je 0x42d3d0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
cmp esi, eax
je 0x42d379
mov edi, eax
mov ecx, esi
call fcn.004339e0
add esi, 0xc
cmp esi, edi
jne 0x42d366
mov esi, dword [ebx]
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebx + 8]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
shl ecx, 2
cmp ecx, 0x1000
jb 0x42d3b2
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x42d4a6
mov esi, edx
push ecx
push esi
call fcn.004611d6
mov dword [ebx], 0
add esp, 8
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push 0xc
push ebx
call fcn.004611d6
add esp, 8
mov dword [edi + 0x129c], 0
lea esi, [edi + 0x534]
mov dword [edi + 0x12a0], 0
mov ebx, pe_nt_image_headers32
nop word [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x42d417
push 0x10
push eax
call fcn.004611d6
add esp, 8
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x42d400
mov esi, dword [edi + 0x462]
test esi, esi
je 0x42d447
nop dword [eax]
push dword [esi + 8]
call fcn.00464c8a
push esi
mov esi, dword [esi]
call fcn.00464c8a
add esp, 8
test esi, esi
jne 0x42d430
mov eax, dword [edi + 0xd40]
test eax, eax
je 0x42d471
push eax
mov eax, dword [edi + 0xd44]
call eax
add esp, 4
mov dword [edi + 0xd40], 0
mov dword [edi + 0xd44], 0
push dword [edi + 0xd34]
call fcn.00464c8a
mov ebx, dword [ebp - 4]
push dword [ebx + 0x7c]
call fcn.00464c8a
mov eax, dword [0x49e5dc]
add esp, 8
xor ecx, ecx
cmp eax, dword [ebx + 0x7c]
cmove eax, ecx
mov dword [0x49e5dc], eax
pop esi
mov dword [ebx + 0x7c], ecx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
call fcn.004661ae
int3