Function at 0x409360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47d720
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x98]
test eax, eax
je 0x409422
cmp byte [edi + 1], 0
je 0x409422
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x98]
test esi, esi
je 0x409422
mov ecx, esi
call fcn.00420090
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4093cc
mov eax, dword [0x4b6d20]
test eax, eax
je 0x4093c3
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x4093eb
mov eax, dword [0x4b6d20]
test eax, eax
je 0x4093e2
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x40940a
mov eax, dword [0x4b6d20]
test eax, eax
je 0x409401
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov eax, dword [0x4b6d20]
test eax, eax
je 0x409419
dec dword [eax + 0x370]
push esi
call fcn.0045e0cf
add esp, 4
cmp byte [edi], 0
mov dword [edi + 0x98], 0
je 0x409c94
cmp byte [edi + 0x2e9d], 0
je 0x4094a3
mov esi, dword [edi + 0x20]
test esi, esi
je 0x4094a3
mov ebx, dword [0x4b6d20]
lea ecx, [ebp - 0x10]
mov dword [0x4b6d20], edi
mov dword [edi + 0x2ea0], 0
mov dword [ebp - 0x10], 0
call fcn.004145f0
mov edx, 0x48e6b4
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.00405010
mov esi, eax
test esi, esi
je 0x40949d
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push 1
push dword [ebp - 0x14]
call fcn.0045bec3
push esi
call fcn.0045b318
add esp, 0x14
mov dword [0x4b6d20], ebx
xor esi, esi
cmp dword [edi + 0x2ed4], esi
jle 0x4094d4
xor ebx, ebx
nop
mov eax, dword [edi + 0x2edc]
add eax, ebx
cmp dword [eax + 4], 6
jne 0x4094c8
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x2ed4]
jl 0x4094b0
xor esi, esi
cmp dword [edi + 0x1b54], esi
jle 0x409515
nop
mov eax, dword [edi + 0x1b5c]
mov ebx, dword [eax + esi*4]
test ebx, ebx
je 0x40950c
mov ecx, ebx
call fcn.004067b0
mov eax, dword [0x4b6d20]
test eax, eax
je 0x409503
dec dword [eax + 0x370]
push ebx
call fcn.0045e0cf
add esp, 4
inc esi
cmp esi, dword [edi + 0x1b54]
jl 0x4094e0
mov ecx, dword [edi + 0x1b5c]
test ecx, ecx
je 0x409555
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1b58], 0
mov dword [edi + 0x1b54], 0
test eax, eax
je 0x409542
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1b5c], 0
mov ecx, dword [edi + 0x1b68]
test ecx, ecx
je 0x409595
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1b64], 0
mov dword [edi + 0x1b60], 0
test eax, eax
je 0x409582
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1b68], 0
mov ecx, dword [edi + 0x1b74]
test ecx, ecx
je 0x4095d5
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1b70], 0
mov dword [edi + 0x1b6c], 0
test eax, eax
je 0x4095c2
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1b74], 0
mov dword [edi + 0x1b9c], 0
mov ecx, dword [edi + 0x1b80]
test ecx, ecx
je 0x40961f
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1b7c], 0
mov dword [edi + 0x1b78], 0
test eax, eax
je 0x40960c
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1b80], 0
mov ecx, dword [edi + 0x1b8c]
test ecx, ecx
je 0x40965f
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1b88], 0
mov dword [edi + 0x1b84], 0
test eax, eax
je 0x40964c
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1b8c], 0
mov dword [edi + 0x1d00], 0
mov dword [edi + 0x1ba4], 0
mov dword [edi + 0x1ba0], 0
mov dword [edi + 0x1c14], 0
mov dword [edi + 0x1c00], 0
mov dword [edi + 0x1ba8], 0
mov ecx, dword [edi + 0x1c9c]
test ecx, ecx
je 0x4096db
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1c98], 0
mov dword [edi + 0x1c94], 0
test eax, eax
je 0x4096c8
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1c9c], 0
mov ecx, dword [edi + 0x1ca8]
test ecx, ecx
je 0x40971b
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1ca4], 0
mov dword [edi + 0x1ca0], 0
test eax, eax
je 0x409708
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1ca8], 0
mov ecx, dword [edi + 0x1cb4]
test ecx, ecx
je 0x40975b
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1cb0], 0
mov dword [edi + 0x1cac], 0
test eax, eax
je 0x409748
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1cb4], 0
mov ecx, dword [edi + 0x1ce4]
test ecx, ecx
je 0x40979b
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1ce0], 0
mov dword [edi + 0x1cdc], 0
test eax, eax
je 0x409788
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1ce4], 0
mov ecx, dword [edi + 0x1cf0]
test ecx, ecx
je 0x4097db
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1cec], 0
mov dword [edi + 0x1ce8], 0
test eax, eax
je 0x4097c8
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1cf0], 0
xor ebx, ebx
cmp dword [edi + 0x1cf4], ebx
jle 0x40989c
nop dword [eax]
mov eax, dword [edi + 0x1cfc]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x40988f
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40982c
mov ecx, eax
call fcn.00403250
mov eax, dword [0x4b6d20]
test eax, eax
je 0x409821
dec dword [eax + 0x370]
push dword [ebp - 0x14]
call fcn.0045e0cf
add esp, 4
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409857
mov ecx, eax
call fcn.00403250
mov eax, dword [0x4b6d20]
test eax, eax
je 0x40984c
dec dword [eax + 0x370]
push dword [ebp - 0x14]
call fcn.0045e0cf
add esp, 4
push 0x4153e0
push 2
push 0xc
lea eax, [esi + 0x60]
mov dword [ebp - 4], 0
push eax
call fcn.0043f53e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4b6d20]
test eax, eax
je 0x409886
dec dword [eax + 0x370]
push esi
call fcn.0045e0cf
add esp, 4
inc ebx
cmp ebx, dword [edi + 0x1cf4]
jl 0x4097f0
mov ecx, dword [edi + 0x1cfc]
test ecx, ecx
je 0x4098dc
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1cf8], 0
mov dword [edi + 0x1cf4], 0
test eax, eax
je 0x4098c9
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1cfc], 0
lea ecx, [edi + 0x1f20]
call fcn.00414dd0
mov ecx, dword [edi + 0x1f44]
test ecx, ecx
je 0x409927
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1f40], 0
mov dword [edi + 0x1f3c], 0
test eax, eax
je 0x409914
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1f44], 0
mov ecx, dword [edi + 0x1f50]
test ecx, ecx
je 0x409967
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1f4c], 0
mov dword [edi + 0x1f48], 0
test eax, eax
je 0x409954
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1f50], 0
lea ecx, [edi + 0x1edc]
call fcn.00414eb0
xor ebx, ebx
cmp dword [edi + 0x1ef8], ebx
jle 0x4099e1
xor eax, eax
mov dword [ebp - 0x10], eax
mov esi, dword [edi + 0x1f00]
add esi, eax
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x4099a8
mov eax, dword [0x4b6d20]
test eax, eax
je 0x40999f
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
lea ecx, [esi + 0x10]
call fcn.0041fa40
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4099cf
mov eax, dword [0x4b6d20]
test eax, eax
je 0x4099c6
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov eax, dword [ebp - 0x10]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 0x10], eax
cmp ebx, dword [edi + 0x1ef8]
jl 0x409981
mov ecx, dword [edi + 0x1f00]
test ecx, ecx
je 0x409a21
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1efc], 0
mov dword [edi + 0x1ef8], 0
test eax, eax
je 0x409a0e
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1f00], 0
mov ecx, dword [edi + 0x1f18]
test ecx, ecx
je 0x409a61
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1f14], 0
mov dword [edi + 0x1f10], 0
test eax, eax
je 0x409a4e
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1f18], 0
mov ecx, dword [edi + 0x2e7c]
test ecx, ecx
je 0x409aa1
mov eax, dword [0x4b6d20]
mov dword [edi + 0x2e78], 0
mov dword [edi + 0x2e74], 0
test eax, eax
je 0x409a8e
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x2e7c], 0
mov ecx, dword [edi + 0x2e88]
test ecx, ecx
je 0x409ae1
mov eax, dword [0x4b6d20]
mov dword [edi + 0x2e84], 0
mov dword [edi + 0x2e80], 0
test eax, eax
je 0x409ace
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x2e88], 0
mov ecx, dword [edi + 0x1f70]
test ecx, ecx
je 0x409b21
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1f6c], 0
mov dword [edi + 0x1f68], 0
test eax, eax
je 0x409b0e
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1f70], 0
mov ecx, dword [edi + 0x1f7c]
test ecx, ecx
je 0x409b61
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1f78], 0
mov dword [edi + 0x1f74], 0
test eax, eax
je 0x409b4e
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1f7c], 0
mov ecx, dword [edi + 0x1f88]
test ecx, ecx
je 0x409ba1
mov eax, dword [0x4b6d20]
mov dword [edi + 0x1f84], 0
mov dword [edi + 0x1f80], 0
test eax, eax
je 0x409b8e
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x1f88], 0
mov ecx, dword [edi + 0x2ec4]
test ecx, ecx
je 0x409be1
mov eax, dword [0x4b6d20]
mov dword [edi + 0x2ec0], 0
mov dword [edi + 0x2ebc], 0
test eax, eax
je 0x409bce
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x2ec4], 0
mov ecx, dword [edi + 0x2eb8]
test ecx, ecx
je 0x409c21
mov eax, dword [0x4b6d20]
mov dword [edi + 0x2eb4], 0
mov dword [edi + 0x2eb0], 0
test eax, eax
je 0x409c0e
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x2eb8], 0
cmp dword [edi + 0x2eec], 0
je 0x409c51
mov esi, dword [edi + 0x2eec]
push 1
call fcn.0045ae8f
add esp, 4
cmp esi, eax
je 0x409c47
push esi
call fcn.0045b318
add esp, 4
mov dword [edi + 0x2eec], 0
mov ecx, dword [edi + 0x2ef8]
test ecx, ecx
je 0x409c91
mov eax, dword [0x4b6d20]
mov dword [edi + 0x2ef4], 0
mov dword [edi + 0x2ef0], 0
test eax, eax
je 0x409c7e
dec dword [eax + 0x370]
push ecx
call fcn.0045e0cf
add esp, 4
mov dword [edi + 0x2ef8], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret