Function at 0x42a91f
Capabilities:
Write file on windows

Disassembly:
push 0x90c
mov eax, 0x45a8a8
call fcn.00438c9e
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x8b0]
mov dword [ebp - 0x8f8], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8fc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8f4], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x8a0], ebx
mov dword [ebp - 0x89c], 7
mov word [ebp - 0x8b0], ax
lea eax, [ebp - 0x8b0]
mov dword [ebp - 4], ebx
push eax
push 0x404de0
push 0x2a
mov dword [ebp - 0x8ec], ebx
call fcn.004369c7
add esp, 0xc
test al, al
jne 0x42a9e9
mov eax, dword [ebp - 0x89c]
cmp eax, 8
jb 0x42aa65
mov ecx, dword [ebp - 0x8b0]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x8e8], eax
mov dword [ebp - 0x8e4], ecx
cmp eax, 0x1000
jb 0x42aa5c
lea eax, [ebp - 0x8e8]
push eax
lea eax, [ebp - 0x8e4]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x8e8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8e4]
jmp 0x42aa5c
cmp dword [ebp - 0x89c], 8
lea eax, [ebp - 0x8b0]
jb 0x42a9fe
mov eax, dword [ebp - 0x8b0]
push 0xa
push ebx
push eax
call fcn.0043e1d5
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x42aa6c
mov eax, dword [ebp - 0x89c]
cmp eax, 8
jb 0x42aa65
mov ecx, dword [ebp - 0x8b0]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x8e4], eax
mov dword [ebp - 0x8e8], ecx
cmp eax, 0x1000
jb 0x42aa5c
lea eax, [ebp - 0x8e4]
push eax
lea eax, [ebp - 0x8e8]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x8e4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8e8]
push eax
push ecx
call fcn.00438c1d
pop ecx
pop ecx
mov al, 1
jmp 0x42b11e
mov esi, 0x800
lea eax, [ebp - 0x810]
push esi
push 0
push eax
call fcn.0043a2b0
add esp, 0xc
lea eax, [ebp - 0x810]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x42aa89
mov dword [ebp - 0x8e8], esi
test ebx, ebx
jle 0x42b0fb
xor eax, eax
lea edi, [ebp - 0x850]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], 7
mov word [ebp - 0x850], ax
push 0x404dec
lea ecx, [ebp - 0x8e0]
mov byte [ebp - 4], 1
call fcn.00413941
push 0xa
push 0x400
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 2
push eax
push esi
call fcn.00442082
add esp, 0x10
lea ecx, [ebp - 0x8e0]
test eax, eax
jne 0x42b192
lea eax, [ebp - 0x810]
push eax
call fcn.00418458
push 8
pop edi
lea eax, [ebp - 0x8e0]
cmp dword [ebp - 0x8cc], edi
jb 0x42ab26
mov eax, dword [ebp - 0x8e0]
lea ecx, [ebp - 0x850]
push ecx
push eax
push 0x2a
call fcn.004369c7
add esp, 0xc
test al, al
jne 0x42aba8
lea ecx, [ebp - 0x8e0]
call fcn.00414f1b
mov eax, dword [ebp - 0x83c]
mov byte [ebp - 4], 0
cmp eax, edi
jb 0x42b0ec
mov ecx, dword [ebp - 0x850]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x8e4], eax
mov dword [ebp - 0x8e8], ecx
cmp eax, 0x1000
jb 0x42ab9a
lea eax, [ebp - 0x8e4]
push eax
lea eax, [ebp - 0x8e8]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x8e4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8e8]
push eax
push ecx
call fcn.00438c1d
pop ecx
pop ecx
jmp 0x42b0ec
push 0x404dfc
lea ecx, [ebp - 0x8c8]
call fcn.00413941
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x8c8]
call fcn.00418458
and dword [ebp - 0x8ec], 0
lea eax, [ebp - 0x8c8]
cmp dword [ebp - 0x8b4], edi
jb 0x42abe9
mov eax, dword [ebp - 0x8c8]
lea ecx, [ebp - 0x8ec]
push ecx
push 0
push eax
push 0x2a
push dword [0x461740]
call fcn.00435aa1
add esp, 0x14
cmp eax, 0xea
jne 0x42b124
cmp dword [ebp - 0x8ec], 0
je 0x42b124
xor eax, eax
lea ecx, [ebp - 0x820]
mov byte [ebp - 0x8ed], al
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x8ed]
push eax
push dword [ebp - 0x8ec]
call fcn.00429bcc
lea eax, [ebp - 0x8c8]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x8b4], edi
jb 0x42ac65
mov eax, dword [ebp - 0x8c8]
mov esi, dword [ebp - 0x820]
lea ecx, [ebp - 0x8ec]
push ecx
push esi
push eax
push 0x2a
push dword [0x461740]
call fcn.00435aa1
xor eax, eax
lea edi, [ebp - 0x838]
stosd dword es:[edi], eax
add esp, 0x14
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
xor edi, edi
mov dword [ebp - 0x824], 7
mov dword [ebp - 0x828], edi
mov word [ebp - 0x838], ax
cmp dword [ebp - 0x83c], 8
lea ecx, [ebp - 0x850]
mov byte [ebp - 4], 5
jb 0x42acc4
mov ecx, dword [ebp - 0x850]
mov edx, dword [ebp - 0x8f8]
mov eax, edx
cmp dword [edx + 0x14], 8
jb 0x42acd4
mov eax, dword [edx]
push edi
push ecx
push eax
lea eax, [ebp - 0x838]
push edi
push eax
call fcn.00436a70
xor eax, eax
lea edi, [ebp - 0x898]
stosd dword es:[edi], eax
add esp, 0x14
xor ecx, ecx
stosd dword es:[edi], eax
push 7
pop edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x888], ecx
mov dword [ebp - 0x884], edx
mov word [ebp - 0x898], ax
lea edi, [ebp - 0x880]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x870], ecx
mov dword [ebp - 0x86c], edx
mov word [ebp - 0x880], ax
lea edi, [ebp - 0x868]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x858], ecx
mov dword [ebp - 0x854], edx
mov word [ebp - 0x868], ax
cmp dword [ebp - 0x824], 8
lea eax, [ebp - 0x838]
mov byte [ebp - 4], 8
jb 0x42ad64
mov eax, dword [ebp - 0x838]
push ecx
push ecx
lea ecx, [ebp - 0x880]
push ecx
lea ecx, [ebp - 0x898]
push ecx
push eax
call fcn.004370f8
add esp, 0x14
lea ecx, [ebp - 0x880]
cmp dword [ebp - 0x86c], 8
jb 0x42ad92
mov ecx, dword [ebp - 0x880]
cmp dword [ebp - 0x884], 8
lea eax, [ebp - 0x898]
jb 0x42ada7
mov eax, dword [ebp - 0x898]
xor edi, edi
push edi
push edi
push ecx
push eax
lea eax, [ebp - 0x868]
push eax
call fcn.00436a70
add esp, 0x14
lea eax, [ebp - 0x868]
cmp dword [ebp - 0x854], 8
jb 0x42add1
mov eax, dword [ebp - 0x868]
push eax
call fcn.00434bd0
cmp dword [ebp - 0x824], 8
lea eax, [ebp - 0x838]
pop ecx
jb 0x42aded
mov eax, dword [ebp - 0x838]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
call dword [0x460968]
mov edi, eax
cmp edi, 0xffffffff
je 0x42ae30
and dword [ebp - 0x814], 0
lea eax, [ebp - 0x814]
push 0
push eax
push dword [ebp - 0x8ec]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42b1a2
mov ecx, dword [ebp - 0x8fc]
lea eax, [ebp - 0x850]
push eax
call fcn.0041b6ef
mov ecx, dword [ebp - 0x8f4]
lea eax, [ebp - 0x838]
push eax
call fcn.0041b6ef
cmp edi, 0xffffffff
je 0x42ae60
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x854]
cmp eax, 8
jb 0x42aeb5
mov ecx, dword [ebp - 0x868]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x8e4], eax
mov dword [ebp - 0x814], ecx
cmp eax, 0x1000
jb 0x42aeac
lea eax, [ebp - 0x8e4]
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x8e4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x814]
push eax
push ecx
call fcn.00438c1d
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x854], 7
xor edi, edi
mov word [ebp - 0x868], ax
mov eax, dword [ebp - 0x86c]
mov dword [ebp - 0x858], edi
cmp eax, 8
jb 0x42af25
mov ecx, dword [ebp - 0x880]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x8e4], ecx
cmp eax, 0x1000
jb 0x42af1c
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x8e4]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x814]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8e4]
push eax
push ecx
call fcn.00438c1d
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x870], edi
mov word [ebp - 0x880], ax
mov eax, dword [ebp - 0x884]
mov dword [ebp - 0x86c], 7
cmp eax, 8
jb 0x42af93
mov ecx, dword [ebp - 0x898]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x8e4], ecx
cmp eax, 0x1000
jb 0x42af8a
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x8e4]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x814]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8e4]
push eax
push ecx
call fcn.00438c1d
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x888], edi
mov word [ebp - 0x898], ax
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x884], 7
cmp eax, 8
jb 0x42b001
mov ecx, dword [ebp - 0x838]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x8e4], ecx
cmp eax, 0x1000
jb 0x42aff8
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x8e4]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x814]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8e4]
push eax
push ecx
call fcn.00438c1d
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x828], edi
mov dword [ebp - 0x824], 7
mov word [ebp - 0x838], ax
test esi, esi
je 0x42b077
mov eax, dword [ebp - 0x818]
sub eax, esi
mov dword [ebp - 0x8e4], esi
mov dword [ebp - 0x814], eax
cmp eax, 0x1000
jb 0x42b05a
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x8e4]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x814]
mov esi, dword [ebp - 0x8e4]
pop ecx
pop ecx
push eax
push esi
call fcn.00438c1d
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x818], eax
lea ecx, [ebp - 0x8c8]
call fcn.00414f1b
lea ecx, [ebp - 0x8e0]
call fcn.00414f1b
mov eax, dword [ebp - 0x83c]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x42b0e6
mov ecx, dword [ebp - 0x850]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x8e4], ecx
cmp eax, 0x1000
jb 0x42b0dd
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x8e4]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x814]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8e4]
push eax
push ecx
call fcn.00438c1d
pop ecx
pop ecx
mov esi, dword [ebp - 0x8e8]
inc esi
mov dword [ebp - 0x8e8], esi
cmp esi, ebx
jl 0x42aaa0
mov ecx, dword [ebp - 0x8f4]
push 0x18
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
pop ecx
cdq
idiv ecx
lea ecx, [ebp - 0x8b0]
mov esi, eax
call fcn.00414f1b
cmp esi, ebx
sete al
call fcn.00438c4d
ret
lea ecx, [ebp - 0x8c8]
call fcn.00414f1b
lea ecx, [ebp - 0x8e0]
call fcn.00414f1b
mov eax, dword [ebp - 0x83c]
cmp eax, edi
mov byte [ebp - 4], 0
jb 0x42b0ec
mov ecx, dword [ebp - 0x850]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x8e4], ecx
cmp eax, 0x1000
jb 0x42ab9a
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x8e4]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x814]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8e4]
jmp 0x42ab9a
call fcn.00414f1b
mov eax, dword [ebp - 0x83c]
cmp eax, 8
jmp 0x42b142
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x838]
call fcn.00414fe9
push eax
lea ecx, [ebp - 0x850]
call fcn.00414fe9
push eax
push 0x58f
lea eax, [ebp - 0x918]
push esi
push eax
call fcn.0041399d
add esp, 0x14
lea eax, [ebp - 0x918]
push 0x45ba6c
push eax
call fcn.00439908
int3