Function at 0x4094d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437dc0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x44300c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x443af8]
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4095d0
cmp byte [edi + 1], 0
je 0x4095d0
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x48]
test esi, esi
je 0x4095d0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00428d30
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x409559
mov eax, dword [0x443af8]
test eax, eax
je 0x40954a
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x409582
mov eax, dword [0x443af8]
test eax, eax
je 0x409573
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4095ab
mov eax, dword [0x443af8]
test eax, eax
je 0x40959c
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x443af8]
test eax, eax
je 0x4095c1
dec dword [eax + 0xb4]
push dword [0x443af0]
push esi
call fcn.00407590
add esp, 8
mov dword [edi + 0x48], 0
mov ecx, dword [edi + 0x3c10]
test ecx, ecx
je 0x40961d
mov eax, dword [0x443af8]
mov dword [edi + 0x3c0c], 0
mov dword [edi + 0x3c08], 0
test eax, eax
je 0x409604
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x3c10], 0
cmp byte [edi], 0
je 0x40a0b0
cmp byte [edi + 0x5a69], 0
je 0x409686
mov esi, dword [edi + 0x20]
test esi, esi
je 0x409686
mov eax, dword [0x443af8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [eax + 0x5a6c], 0
call fcn.0041aef0
mov edx, 0x43e940
mov ecx, esi
mov ebx, eax
call fcn.00407ea0
mov esi, eax
test esi, esi
je 0x409686
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
xor esi, esi
cmp dword [edi + 0x5aa0], esi
jle 0x4096b6
xor ebx, ebx
mov ecx, dword [edi + 0x5aa8]
add ecx, ebx
cmp dword [ecx + 4], 6
jne 0x4096aa
mov eax, dword [ecx + 0xc]
push ecx
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5aa0]
jl 0x409692
xor esi, esi
cmp dword [edi + 0x3e28], esi
jle 0x4096fb
mov eax, dword [edi + 0x3e30]
mov ebx, dword [eax + esi*4]
test ebx, ebx
je 0x4096f2
mov ecx, ebx
call fcn.0040a820
mov eax, dword [0x443af8]
test eax, eax
je 0x4096e3
dec dword [eax + 0xb4]
push dword [0x443af0]
push ebx
call fcn.00407590
add esp, 8
inc esi
cmp esi, dword [edi + 0x3e28]
jl 0x4096c0
mov ecx, dword [edi + 0x3e30]
test ecx, ecx
je 0x409741
mov eax, dword [0x443af8]
mov dword [edi + 0x3e2c], 0
mov dword [edi + 0x3e28], 0
test eax, eax
je 0x409728
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x3e30], 0
mov ecx, dword [edi + 0x3e3c]
test ecx, ecx
je 0x409787
mov eax, dword [0x443af8]
mov dword [edi + 0x3e38], 0
mov dword [edi + 0x3e34], 0
test eax, eax
je 0x40976e
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x3e3c], 0
mov ecx, dword [edi + 0x3e48]
test ecx, ecx
je 0x4097cd
mov eax, dword [0x443af8]
mov dword [edi + 0x3e44], 0
mov dword [edi + 0x3e40], 0
test eax, eax
je 0x4097b4
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x3e48], 0
mov dword [edi + 0x3e70], 0
mov ecx, dword [edi + 0x3e54]
test ecx, ecx
je 0x40981d
mov eax, dword [0x443af8]
mov dword [edi + 0x3e50], 0
mov dword [edi + 0x3e4c], 0
test eax, eax
je 0x409804
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x3e54], 0
mov ecx, dword [edi + 0x3e60]
test ecx, ecx
je 0x409863
mov eax, dword [0x443af8]
mov dword [edi + 0x3e5c], 0
mov dword [edi + 0x3e58], 0
test eax, eax
je 0x40984a
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x3e60], 0
lea ecx, [edi + 0x4588]
mov dword [edi + 0x47f0], 0
mov dword [edi + 0x3e78], 0
mov dword [edi + 0x3e74], 0
mov dword [edi + 0x3eec], 0
mov dword [edi + 0x3ed8], 0
mov dword [edi + 0x3e7c], 0
call fcn.00405c00
mov ecx, dword [edi + 0x4788]
test ecx, ecx
je 0x4098f0
mov eax, dword [0x443af8]
mov dword [edi + 0x4784], 0
mov dword [edi + 0x4780], 0
test eax, eax
je 0x4098d7
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x4788], 0
mov ecx, dword [edi + 0x4794]
test ecx, ecx
je 0x409936
mov eax, dword [0x443af8]
mov dword [edi + 0x4790], 0
mov dword [edi + 0x478c], 0
test eax, eax
je 0x40991d
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x4794], 0
mov ecx, dword [edi + 0x47a0]
test ecx, ecx
je 0x40997c
mov eax, dword [0x443af8]
mov dword [edi + 0x479c], 0
mov dword [edi + 0x4798], 0
test eax, eax
je 0x409963
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x47a0], 0
mov ecx, dword [edi + 0x47d0]
test ecx, ecx
je 0x4099c2
mov eax, dword [0x443af8]
mov dword [edi + 0x47cc], 0
mov dword [edi + 0x47c8], 0
test eax, eax
je 0x4099a9
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x47d0], 0
mov ecx, dword [edi + 0x47dc]
test ecx, ecx
je 0x409a08
mov eax, dword [0x443af8]
mov dword [edi + 0x47d8], 0
mov dword [edi + 0x47d4], 0
test eax, eax
je 0x4099ef
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x47dc], 0
xor ebx, ebx
cmp dword [edi + 0x47e4], ebx
jle 0x409ae2
nop word [eax + eax]
mov eax, dword [edi + 0x47ec]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x409ad5
mov dword [ebp - 4], 4
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x409a69
mov ecx, eax
call fcn.00405940
mov eax, dword [0x443af8]
test eax, eax
je 0x409a58
dec dword [eax + 0xb4]
push dword [0x443af0]
push dword [ebp - 0x10]
call fcn.00407590
add esp, 8
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x409a9a
mov ecx, eax
call fcn.00405940
mov eax, dword [0x443af8]
test eax, eax
je 0x409a89
dec dword [eax + 0xb4]
push dword [0x443af0]
push dword [ebp - 0x10]
call fcn.00407590
add esp, 8
push 0x41bd50
push 2
push 0xc
lea eax, [esi + 0x64]
mov byte [ebp - 4], 5
push eax
call fcn.00436536
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x443af8]
test eax, eax
je 0x409ac6
dec dword [eax + 0xb4]
push dword [0x443af0]
push esi
call fcn.00407590
add esp, 8
inc ebx
cmp ebx, dword [edi + 0x47e4]
jl 0x409a20
mov ecx, dword [edi + 0x47ec]
test ecx, ecx
je 0x409b28
mov eax, dword [0x443af8]
mov dword [edi + 0x47e8], 0
mov dword [edi + 0x47e4], 0
test eax, eax
je 0x409b0f
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x47ec], 0
lea ecx, [edi + 0x4a7c]
call fcn.0041bdb0
mov ecx, dword [edi + 0x4aa4]
test ecx, ecx
je 0x409b79
mov eax, dword [0x443af8]
mov dword [edi + 0x4aa0], 0
mov dword [edi + 0x4a9c], 0
test eax, eax
je 0x409b60
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x4aa4], 0
mov ecx, dword [edi + 0x4ab0]
test ecx, ecx
je 0x409bbf
mov eax, dword [0x443af8]
mov dword [edi + 0x4aac], 0
mov dword [edi + 0x4aa8], 0
test eax, eax
je 0x409ba6
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x4ab0], 0
xor esi, esi
cmp dword [edi + 0x4a20], esi
jle 0x409c16
xor ebx, ebx
nop dword [eax + eax]
mov eax, dword [edi + 0x4a28]
mov dword [ebp - 4], 6
mov ecx, dword [eax + ebx + 0x18]
test ecx, ecx
je 0x409c03
mov eax, dword [0x443af8]
test eax, eax
je 0x409bf4
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
inc esi
mov dword [ebp - 4], 0xffffffff
add ebx, 0x1c
cmp esi, dword [edi + 0x4a20]
jl 0x409bd0
mov ecx, dword [edi + 0x4a28]
test ecx, ecx
je 0x409c5c
mov eax, dword [0x443af8]
mov dword [edi + 0x4a24], 0
mov dword [edi + 0x4a20], 0
test eax, eax
je 0x409c43
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x4a28], 0
lea ecx, [edi + 0x4a40]
call fcn.0041bfa0
xor ebx, ebx
cmp dword [edi + 0x4a34], ebx
jle 0x409cd9
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
mov esi, dword [edi + 0x4a3c]
add esi, ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 7
call fcn.00428600
mov byte [ebp - 4], 8
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x409cc0
mov eax, dword [0x443af8]
test eax, eax
je 0x409cb1
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [ebp - 4], 0xffffffff
inc ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
mov dword [ebp - 0x10], ecx
cmp ebx, dword [edi + 0x4a34]
jl 0x409c80
mov ecx, dword [edi + 0x4a3c]
test ecx, ecx
je 0x409d1f
mov eax, dword [0x443af8]
mov dword [edi + 0x4a38], 0
mov dword [edi + 0x4a34], 0
test eax, eax
je 0x409d06
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x4a3c], 0
mov ecx, dword [edi + 0x4a74]
test ecx, ecx
je 0x409d65
mov eax, dword [0x443af8]
mov dword [edi + 0x4a70], 0
mov dword [edi + 0x4a6c], 0
test eax, eax
je 0x409d4c
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x4a74], 0
mov ecx, dword [edi + 0x5a38]
test ecx, ecx
je 0x409dab
mov eax, dword [0x443af8]
mov dword [edi + 0x5a34], 0
mov dword [edi + 0x5a30], 0
test eax, eax
je 0x409d92
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x5a38], 0
mov ecx, dword [edi + 0x5a44]
test ecx, ecx
je 0x409df1
mov eax, dword [0x443af8]
mov dword [edi + 0x5a40], 0
mov dword [edi + 0x5a3c], 0
test eax, eax
je 0x409dd8
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x5a44], 0
mov ecx, dword [edi + 0x4ae4]
test ecx, ecx
je 0x409e37
mov eax, dword [0x443af8]
mov dword [edi + 0x4ae0], 0
mov dword [edi + 0x4adc], 0
test eax, eax
je 0x409e1e
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x4ae4], 0
mov ecx, dword [edi + 0x4af0]
test ecx, ecx
je 0x409e7d
mov eax, dword [0x443af8]
mov dword [edi + 0x4aec], 0
mov dword [edi + 0x4ae8], 0
test eax, eax
je 0x409e64
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x4af0], 0
mov ecx, dword [edi + 0x4afc]
test ecx, ecx
je 0x409ec3
mov eax, dword [0x443af8]
mov dword [edi + 0x4af8], 0
mov dword [edi + 0x4af4], 0
test eax, eax
je 0x409eaa
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x4afc], 0
mov dword [edi + 0x5944], 0
mov ecx, dword [edi + 0x5950]
test ecx, ecx
je 0x409f13
mov eax, dword [0x443af8]
mov dword [edi + 0x594c], 0
mov dword [edi + 0x5948], 0
test eax, eax
je 0x409efa
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x5950], 0
mov ecx, dword [edi + 0x5a90]
test ecx, ecx
je 0x409f59
mov eax, dword [0x443af8]
mov dword [edi + 0x5a8c], 0
mov dword [edi + 0x5a88], 0
test eax, eax
je 0x409f40
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x5a90], 0
mov ecx, dword [edi + 0x5a84]
test ecx, ecx
je 0x409f9f
mov eax, dword [0x443af8]
mov dword [edi + 0x5a80], 0
mov dword [edi + 0x5a7c], 0
test eax, eax
je 0x409f86
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x5a84], 0
cmp dword [edi + 0x5ad4], 0
je 0x409fd1
mov esi, dword [edi + 0x5ad4]
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp esi, eax
je 0x409fc7
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x5ad4], 0
mov ecx, dword [edi + 0x5ae0]
test ecx, ecx
je 0x40a017
mov eax, dword [0x443af8]
mov dword [edi + 0x5adc], 0
mov dword [edi + 0x5ad8], 0
test eax, eax
je 0x409ffe
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x5ae0], 0
mov ecx, dword [edi + 0x5b0c]
test ecx, ecx
je 0x40a05d
mov eax, dword [0x443af8]
mov dword [edi + 0x5b08], 0
mov dword [edi + 0x5b04], 0
test eax, eax
je 0x40a044
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x5b0c], 0
mov ecx, dword [edi + 0x5b18]
test ecx, ecx
je 0x40a0a3
mov eax, dword [0x443af8]
mov dword [edi + 0x5b14], 0
mov dword [edi + 0x5b10], 0
test eax, eax
je 0x40a08a
dec dword [eax + 0xb4]
push dword [0x443af0]
push ecx
call fcn.00407590
add esp, 8
mov dword [edi + 0x5b18], 0
mov dword [edi + 0x5b1c], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret