Function at 0x22409e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7fc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov ecx, 0x70
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x38]
push eax
lea ecx, [esp + 0x94]
xor ebx, ebx
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], 0x1c0
mov dword [esp + 0x30], 0x43106510
mov dword [esp + 0x1a8], 0x34015601
call fcn.0226b20c
lea edx, [esi + 0x78]
push edx
lea eax, [esp + 0x10c]
push eax
call fcn.0226b20c
lea ecx, [esi + 8]
push ecx
lea edx, [esp + 0xe4]
push edx
call fcn.0226b20c
lea eax, [esi + 0xf8]
push eax
lea ecx, [esp + 0x19c]
push ecx
call fcn.0226b20c
mov eax, dword [esi + 0x85c]
mov edx, dword [esi + 0x844]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x81c]
add esp, 0x20
test al, 2
mov dword [esp + 0x50], edx
je 0x2240a94
or dword [esp + 0x1d4], 2
test al, 8
je 0x2240aa0
or dword [esp + 0x1d4], 8
lea ecx, [esi + 0x398]
push ecx
lea edx, [esp + 0x1a8]
push edx
call fcn.0226b20c
lea eax, [esi + 0x3a8]
push eax
lea ecx, [esp + 0x1c0]
push ecx
call fcn.0226b20c
lea edx, [esi + 0x3b8]
push edx
lea eax, [esp + 0x1d8]
push eax
call fcn.0226b20c
mov eax, dword [esi + 0xd70]
mov ecx, dword [esi + 0xd68]
mov edx, dword [esi + 0xd6c]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0xd7c]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi + 0xd74]
mov dword [esp + 0x84], eax
mov eax, dword [esi + 0xd88]
mov dword [esp + 0x74], edx
mov edx, dword [esi + 0xd78]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esi + 0xd80]
mov dword [esp + 0x90], eax
mov eax, dword [esi + 0xd94]
mov dword [esp + 0x80], edx
mov edx, dword [esi + 0xd84]
mov dword [esp + 0x88], ecx
mov ecx, dword [esi + 0xd8c]
mov dword [esp + 0x9c], eax
mov ax, word [esi + 0xd60]
mov dword [esp + 0x8c], edx
mov edx, dword [esi + 0xd90]
mov dword [esp + 0x94], ecx
mov ecx, dword [esi + 0xd98]
mov word [esp + 0x1f0], ax
mov eax, dword [esi + 0x838]
mov dword [esp + 0x98], edx
mov edx, dword [esi + 0xd9c]
mov dword [esp + 0xa0], ecx
mov cx, word [esi + 0xd62]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esp + 0x8c], edx
mov word [esp + 0x1da], cx
jne 0x2240bbe
mov eax, 0x469
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x81c]
test ch, 0x20
push ebx
push ebx
je 0x2240bda
mov edx, dword [esi + 0x83c]
push eax
call dword [edx + 0x30c]
jmp 0x2240bed
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x2240bed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1c0
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.022408e0
add esp, 0xc
cmp eax, 0xffffffff
je 0x2241373
cmp dword [esi + 0x840], ebx
je 0x2241373
push esi
call fcn.02240890
mov ebx, dword [esi + 0x840]
add esp, 4
test ebx, ebx
mov dword [esp + 0x54], eax
je 0x2240e7a
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x224100f
mov eax, dword [ebx + 0x298]
test ah, ah
jns 0x2240c4f
inc dword [esp + 0x1c]
jmp 0x2240e60
xor eax, eax
mov ecx, 0x4b
lea edi, [esp + 0x320]
rep stosd dword es:[edi], eax
lea ecx, [ebx + 0x18]
push ecx
lea edx, [esp + 0x324]
push edx
call fcn.0226b20c
lea eax, [ebx + 0x58]
push eax
lea ecx, [esp + 0x36c]
push ecx
call fcn.0226b20c
mov edx, dword [ebx + 0x298]
lea eax, [ebx + 0x2dc]
push eax
lea ecx, [esp + 0x3b4]
and edx, 0xfffff5ff
push ecx
mov dword [esp + 0x44c], edx
call fcn.0226b20c
lea edx, [ebx + 0x31c]
push edx
lea eax, [esp + 0x3fc]
push eax
call fcn.0226b20c
mov ecx, dword [ebx + 0x568]
mov dword [esp + 0x440], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x57c]
push 0x12c
lea eax, [esp + 0x344]
push eax
push ecx
mov dword [esp + 0x464], edx
call fcn.022408e0
add esp, 0x2c
cmp eax, 0xffffffff
jne 0x2240d01
mov dword [esp + 0x10], 0x469
jmp 0x2240e60
mov esi, dword [ebx + 0x578]
mov dword [esp + 0x14], 0
nop
mov edx, dword [esp + 0x14]
cmp edx, dword [ebx + 0x57c]
jge 0x2240e60
xor eax, eax
mov ecx, 0x37
lea edi, [esp + 0x1e8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1ec]
push esi
push eax
call fcn.0226b20c
lea ecx, [esi + 0x40]
push ecx
lea edx, [esp + 0x238]
push edx
call fcn.0226b20c
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x27c], eax
mov eax, dword [esi + 0x8c]
mov dword [esp + 0x280], ecx
mov ecx, dword [esi + 0x90]
mov dword [esp + 0x288], eax
mov eax, dword [esi + 0x98]
mov dword [esp + 0x28c], ecx
mov ecx, dword [esi + 0x9c]
mov dword [esp + 0x284], edx
mov edx, dword [esi + 0x94]
mov dword [esp + 0x294], eax
mov eax, dword [esi + 0xa4]
mov dword [esp + 0x298], ecx
mov ecx, dword [esi + 0xa8]
mov dword [esp + 0x290], edx
mov edx, dword [esi + 0xa0]
mov dword [esp + 0x2a0], eax
mov eax, dword [esi + 0xb0]
mov dword [esp + 0x2a4], ecx
mov ecx, dword [esi + 0xb4]
mov dword [esp + 0x29c], edx
mov edx, dword [esi + 0xac]
mov dword [esp + 0x2ac], eax
push 0xdc
lea eax, [esp + 0x1fc]
mov dword [esp + 0x2b4], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x2ac], edx
mov edx, dword [esi + 0xb8]
push eax
push ecx
mov dword [esp + 0x204], 0xdc
mov dword [esp + 0x2c0], edx
call fcn.022408e0
add esp, 0x1c
cmp eax, 0xdc
je 0x2240e45
mov dword [esp + 0x10], 0x469
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc edx
add esi, 0xc8
test eax, eax
mov dword [esp + 0x14], edx
je 0x2240d10
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x2240c30
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x224100f
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x858]
test eax, eax
je 0x224100f
mov ebx, dword [ebp + 8]
push ebx
call fcn.02240890
mov esi, dword [ebx + 0x858]
add esp, 4
test esi, esi
mov dword [esp + 0x5c], eax
je 0x224100f
jmp 0x2240eb0
mov ebx, dword [ebp + 8]
jmp 0x2240eb0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x224100f
xor eax, eax
mov ecx, 0x6c
lea edi, [esp + 0x450]
lea edx, [esi + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x454]
push eax
call fcn.0226b20c
lea ecx, [esi + 0x50]
push ecx
lea edx, [esp + 0x49c]
push edx
call fcn.0226b20c
lea eax, [esi + 0x90]
push eax
lea ecx, [esp + 0x4e4]
push ecx
call fcn.0226b20c
lea edx, [esi + 0x160]
push edx
lea eax, [esp + 0x5bc]
push eax
call fcn.0226b20c
mov ecx, dword [esi + 0x3b4]
mov dword [esp + 0x600], ecx
mov edx, dword [esi + 0x3a0]
mov dword [esp + 0x604], edx
mov eax, dword [esi + 0x3a4]
push 0x1b0
lea edx, [esp + 0x474]
mov dword [esp + 0x60c], eax
mov ecx, dword [esi + 0x3b0]
push edx
push ebx
mov dword [esp + 0x618], ecx
call fcn.022408e0
add esp, 0x2c
cmp eax, 0xffffffff
jne 0x2240f72
mov dword [esp + 0x10], 0x469
jmp 0x2241007
xor ebx, ebx
mov dword [esp + 0x14], ebx
jmp 0x2240f80
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x3b0]
jge 0x2240ffc
xor eax, eax
mov ecx, 0x15
lea edi, [esp + 0x2c8]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x3b8]
add ecx, ebx
push ecx
lea edx, [esp + 0x2cc]
push edx
call fcn.0226b20c
mov eax, dword [esi + 0x3b8]
mov ecx, dword [ebx + eax + 0x40]
mov eax, dword [ebp + 8]
push 0x54
lea edx, [esp + 0x2d4]
push edx
push eax
mov dword [esp + 0x31c], ecx
call fcn.022408e0
add esp, 0x14
cmp eax, 0x54
je 0x2240fe6
mov dword [esp + 0x10], 0x469
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc edx
add ebx, 0x48
test eax, eax
mov dword [esp + 0x14], edx
je 0x2240f80
jmp 0x2241007
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x2241007
mov esi, dword [esi + 4]
test esi, esi
jne 0x2240ea8
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
sub edx, ecx
test eax, eax
mov dword [esp + 0x50], edx
jne 0x2241346
push 0
call fcn.02265570
mov edi, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x81c]
add esp, 4
test ah, 0x20
mov eax, dword [edi + 0x838]
je 0x224105a
mov edx, dword [edi + 0x83c]
push eax
call dword [edx + 0x324]
jmp 0x224107c
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
cmp esi, 0xffffffff
jne 0x224107a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x224107a
or esi, esi
mov eax, esi
mov ebx, dword [edi + 0x840]
test ebx, ebx
mov dword [esp + 0x6c], eax
je 0x22411b0
mov edi, edi
mov eax, dword [ebx + 0x298]
test ah, ah
js 0x22411a5
push 0x10c
push 1
call fcn.0226b127
mov esi, eax
lea ecx, [ebx + 0x18]
push ecx
lea edx, [esi + 8]
push edx
mov dword [esp + 0x34], esi
call fcn.0226b20c
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
add esp, 0x10
test eax, eax
jne 0x22410ce
mov dword [ecx], esi
jmp 0x22410e4
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x22410df
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x22410d5
mov dword [eax + 4], esi
mov dword [esi], eax
mov eax, dword [ebx + 0x57c]
test eax, eax
mov dword [esp + 0x18], 0
jle 0x22411a5
mov dword [esp + 0x1c], 0
mov esi, dword [ebx + 0x578]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + ecx + 0xc4]
add esi, ecx
test eax, eax
je 0x2241180
push 0x8c
push 1
call fcn.0226b127
mov edi, eax
lea eax, [edi + 8]
push esi
push eax
call fcn.0226b20c
mov esi, dword [esi + 0xc4]
add esp, 0x10
test esi, esi
jne 0x2241143
mov esi, str.null
push esi
call fcn.0225d710
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x88], eax
mov eax, dword [ecx + 0x108]
add esp, 4
test eax, eax
jne 0x224116a
mov edx, ecx
mov dword [edx + 0x108], edi
jmp 0x2241180
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x224117b
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x2241171
mov dword [eax + 4], edi
mov dword [edi], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x57c]
inc eax
add edx, 0xc8
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jl 0x2241102
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x2241090
mov eax, dword [esp + 0x20]
push eax
call fcn.022655d0
mov edi, eax
push edi
call fcn.0226b228
mov esi, dword [ebp + 8]
lea ecx, [eax + eax + 2]
mov eax, dword [esi + 0x81c]
mov ebx, 0x2000
add esp, 8
test ebx, eax
mov dword [esp + 0x14], ecx
je 0x22411fb
mov ecx, dword [esi + 0x838]
mov edx, dword [esi + 0x83c]
push 4
lea eax, [esp + 0x18]
push eax
push ecx
call dword [edx + 0x32c]
jmp 0x224122b
mov eax, dword [esi + 0x838]
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea ecx, [esp + 0x20]
push ecx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2241227
or eax, 0xffffffff
jmp 0x224122b
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x2241287
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x224128f
test dword [esi + 0x81c], ebx
je 0x2241257
mov edx, dword [esi + 0x83c]
push eax
mov eax, dword [esi + 0x838]
push edi
push eax
call dword [edx + 0x32c]
jmp 0x2241282
mov esi, dword [esi + 0x838]
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push edi
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x224127e
or eax, 0xffffffff
jmp 0x2241282
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
jne 0x224128f
mov dword [esp + 0x10], 0x469
mov edx, dword [esp + 0x20]
push edx
call fcn.022655a0
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x2241346
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x81c]
mov edi, 0x2000
test edi, eax
push 0
push 0
je 0x22412d3
mov ecx, dword [esi + 0x838]
mov eax, dword [esi + 0x83c]
push ecx
call dword [eax + 0x30c]
jmp 0x22412ed
mov eax, dword [esi + 0x838]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x22412ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x81c]
mov ecx, dword [esi + 0x838]
test edi, eax
lea eax, [esp + 0x28]
je 0x224131f
mov edx, dword [esi + 0x83c]
push 0x1c0
push eax
push ecx
call dword [edx + 0x32c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea edx, [esp + 0x1c]
push edx
push 0x1c0
push eax
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [esp + 0x600]
push edx
lea ecx, [eax + 0x118]
push ecx
add eax, 0x158
push eax
call fcn.0225d740
lea edx, [esp + 0x60c]
push edx
call fcn.02268750
add esp, 0x10
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret