Function at 0x409100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43afe0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x44b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x44b4c0]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x409168
cmp byte [edi + 1], 0
je 0x409168
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x409168
mov ecx, esi
call fcn.0042a2c0
mov eax, dword [0x44b4c0]
test eax, eax
je 0x409162
dec dword [eax + 0xb0]
push esi
call ebx
add esp, 4
mov dword [edi + 0x2c], 0
mov ecx, dword [edi + 0x3c08]
test ecx, ecx
je 0x4091ac
mov eax, dword [0x44b4c0]
mov dword [edi + 0x3c04], 0
mov dword [edi + 0x3c00], 0
test eax, eax
je 0x40919c
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3c08], 0
cmp byte [edi], 0
je 0x409bb4
cmp byte [edi + 0x5a78], 0
je 0x409218
mov esi, dword [edi + 0x20]
test esi, esi
je 0x409218
mov eax, dword [0x44b4c0]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [eax + 0x5a7c], 0
call fcn.0041d9d0
mov edx, 0x440c5c
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.00407710
mov esi, eax
test esi, esi
je 0x409218
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push 1
push dword [ebp - 0x14]
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
mov eax, dword [edi + 0x5ab0]
mov esi, dword [edi + 0x5ab8]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
mov dword [ebp - 0x14], eax
cmp esi, eax
je 0x40924b
cmp dword [esi + 4], 6
jne 0x409244
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
mov eax, dword [ebp - 0x14]
add esp, 8
add esi, 0x14
cmp esi, eax
jne 0x409231
xor edx, edx
lea esi, [edi + 0x3e20]
mov dword [ebp - 0x10], edx
cmp dword [edi + 0x3e18], edx
jle 0x4092ac
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [esi]
mov esi, dword [ecx + eax]
test esi, esi
je 0x40928e
mov ecx, esi
call fcn.0040a310
mov eax, dword [0x44b4c0]
test eax, eax
je 0x409282
dec dword [eax + 0xb0]
push esi
call ebx
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edx, dword [ebp - 0x10]
inc edx
lea esi, [edi + 0x3e20]
add ecx, 4
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
cmp edx, dword [edi + 0x3e18]
jl 0x409263
lea esi, [edi + 0x3e20]
mov ecx, dword [esi]
test ecx, ecx
je 0x4092e1
mov eax, dword [0x44b4c0]
mov dword [edi + 0x3e1c], 0
mov dword [edi + 0x3e18], 0
test eax, eax
je 0x4092d5
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [esi], 0
mov ecx, dword [edi + 0x3e2c]
test ecx, ecx
je 0x40931e
mov eax, dword [0x44b4c0]
mov dword [edi + 0x3e28], 0
mov dword [edi + 0x3e24], 0
test eax, eax
je 0x40930e
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e2c], 0
mov ecx, dword [edi + 0x3e38]
test ecx, ecx
je 0x40935b
mov eax, dword [0x44b4c0]
mov dword [edi + 0x3e34], 0
mov dword [edi + 0x3e30], 0
test eax, eax
je 0x40934b
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e38], 0
mov dword [edi + 0x3e60], 0
mov ecx, dword [edi + 0x3e44]
test ecx, ecx
je 0x4093a2
mov eax, dword [0x44b4c0]
mov dword [edi + 0x3e40], 0
mov dword [edi + 0x3e3c], 0
test eax, eax
je 0x409392
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e44], 0
mov ecx, dword [edi + 0x3e50]
test ecx, ecx
je 0x4093df
mov eax, dword [0x44b4c0]
mov dword [edi + 0x3e4c], 0
mov dword [edi + 0x3e48], 0
test eax, eax
je 0x4093cf
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e50], 0
lea ecx, [edi + 0x4578]
mov dword [edi + 0x47f0], 0
mov dword [edi + 0x3e68], 0
mov dword [edi + 0x3e64], 0
mov dword [edi + 0x3edc], 0
mov dword [edi + 0x3ec8], 0
mov dword [edi + 0x3e6c], 0
call fcn.004050f0
mov ecx, dword [edi + 0x477c]
test ecx, ecx
je 0x409463
mov eax, dword [0x44b4c0]
mov dword [edi + 0x4778], 0
mov dword [edi + 0x4774], 0
test eax, eax
je 0x409453
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x477c], 0
mov ecx, dword [edi + 0x4788]
test ecx, ecx
je 0x4094a0
mov eax, dword [0x44b4c0]
mov dword [edi + 0x4784], 0
mov dword [edi + 0x4780], 0
test eax, eax
je 0x409490
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4788], 0
mov ecx, dword [edi + 0x4794]
test ecx, ecx
je 0x4094dd
mov eax, dword [0x44b4c0]
mov dword [edi + 0x4790], 0
mov dword [edi + 0x478c], 0
test eax, eax
je 0x4094cd
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4794], 0
mov ecx, dword [edi + 0x47c4]
test ecx, ecx
je 0x40951a
mov eax, dword [0x44b4c0]
mov dword [edi + 0x47c0], 0
mov dword [edi + 0x47bc], 0
test eax, eax
je 0x40950a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47c4], 0
mov ecx, dword [edi + 0x47d0]
test ecx, ecx
je 0x409557
mov eax, dword [0x44b4c0]
mov dword [edi + 0x47cc], 0
mov dword [edi + 0x47c8], 0
test eax, eax
je 0x409547
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47d0], 0
mov ecx, dword [edi + 0x47dc]
test ecx, ecx
je 0x409594
mov eax, dword [0x44b4c0]
mov dword [edi + 0x47d8], 0
mov dword [edi + 0x47d4], 0
test eax, eax
je 0x409584
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47dc], 0
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [edi + 0x47e4], edx
jle 0x409684
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
mov eax, dword [edi + 0x47ec]
mov esi, dword [ecx + eax]
test esi, esi
je 0x40966e
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4095e9
mov ecx, eax
call fcn.00404eb0
mov eax, dword [0x44b4c0]
test eax, eax
je 0x4095e1
dec dword [eax + 0xb0]
push dword [ebp - 0x1c]
call ebx
add esp, 4
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x409611
mov ecx, eax
call fcn.00404eb0
mov eax, dword [0x44b4c0]
test eax, eax
je 0x409609
dec dword [eax + 0xb0]
push dword [ebp - 0x1c]
call ebx
add esp, 4
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x409630
mov eax, dword [0x44b4c0]
test eax, eax
je 0x40962a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x40964c
mov eax, dword [0x44b4c0]
test eax, eax
je 0x409646
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x44b4c0]
test eax, eax
je 0x409662
dec dword [eax + 0xb0]
push esi
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
mov edx, dword [ebp - 0x14]
inc edx
add ecx, 4
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
cmp edx, dword [edi + 0x47e4]
jl 0x4095b0
mov ecx, dword [edi + 0x47ec]
test ecx, ecx
je 0x4096c1
mov eax, dword [0x44b4c0]
mov dword [edi + 0x47e8], 0
mov dword [edi + 0x47e4], 0
test eax, eax
je 0x4096b1
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47ec], 0
lea ecx, [edi + 0x4a78]
call fcn.0041ea20
mov ecx, dword [edi + 0x4aa0]
test ecx, ecx
je 0x409709
mov eax, dword [0x44b4c0]
mov dword [edi + 0x4a9c], 0
mov dword [edi + 0x4a98], 0
test eax, eax
je 0x4096f9
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4aa0], 0
mov ecx, dword [edi + 0x4aac]
test ecx, ecx
je 0x409746
mov eax, dword [0x44b4c0]
mov dword [edi + 0x4aa8], 0
mov dword [edi + 0x4aa4], 0
test eax, eax
je 0x409736
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4aac], 0
xor esi, esi
cmp dword [edi + 0x4a1c], esi
jle 0x40979c
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop word [eax + eax]
mov eax, dword [edi + 0x4a24]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x409786
mov eax, dword [0x44b4c0]
test eax, eax
je 0x40977d
dec dword [eax + 0xb0]
push edx
call ebx
mov ecx, dword [ebp - 0x14]
add esp, 4
inc esi
mov dword [ebp - 4], 0xffffffff
add ecx, 0x1c
mov dword [ebp - 0x14], ecx
cmp esi, dword [edi + 0x4a1c]
jl 0x409760
mov ecx, dword [edi + 0x4a24]
test ecx, ecx
je 0x4097d9
mov eax, dword [0x44b4c0]
mov dword [edi + 0x4a20], 0
mov dword [edi + 0x4a1c], 0
test eax, eax
je 0x4097c9
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a24], 0
lea ecx, [edi + 0x4a3c]
call fcn.0041ec30
cmp dword [edi + 0x4a30], 0
mov dword [ebp - 0x14], 0
jle 0x409852
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop dword [eax]
mov esi, dword [edi + 0x4a38]
add esi, ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 4
call fcn.00429b00
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x409833
mov eax, dword [0x44b4c0]
test eax, eax
je 0x40982d
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
inc eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, dword [edi + 0x4a30]
jl 0x409800
mov ecx, dword [edi + 0x4a38]
test ecx, ecx
je 0x40988f
mov eax, dword [0x44b4c0]
mov dword [edi + 0x4a34], 0
mov dword [edi + 0x4a30], 0
test eax, eax
je 0x40987f
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a38], 0
mov ecx, dword [edi + 0x4a70]
test ecx, ecx
je 0x4098cc
mov eax, dword [0x44b4c0]
mov dword [edi + 0x4a6c], 0
mov dword [edi + 0x4a68], 0
test eax, eax
je 0x4098bc
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a70], 0
mov ecx, dword [edi + 0x5a48]
test ecx, ecx
je 0x409909
mov eax, dword [0x44b4c0]
mov dword [edi + 0x5a44], 0
mov dword [edi + 0x5a40], 0
test eax, eax
je 0x4098f9
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a48], 0
mov ecx, dword [edi + 0x5a54]
test ecx, ecx
je 0x409946
mov eax, dword [0x44b4c0]
mov dword [edi + 0x5a50], 0
mov dword [edi + 0x5a4c], 0
test eax, eax
je 0x409936
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a54], 0
mov ecx, dword [edi + 0x4af0]
test ecx, ecx
je 0x409983
mov eax, dword [0x44b4c0]
mov dword [edi + 0x4aec], 0
mov dword [edi + 0x4ae8], 0
test eax, eax
je 0x409973
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4af0], 0
mov ecx, dword [edi + 0x4afc]
test ecx, ecx
je 0x4099c0
mov eax, dword [0x44b4c0]
mov dword [edi + 0x4af8], 0
mov dword [edi + 0x4af4], 0
test eax, eax
je 0x4099b0
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4afc], 0
mov ecx, dword [edi + 0x4b08]
test ecx, ecx
je 0x4099fd
mov eax, dword [0x44b4c0]
mov dword [edi + 0x4b04], 0
mov dword [edi + 0x4b00], 0
test eax, eax
je 0x4099ed
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4b08], 0
mov dword [edi + 0x5950], 0
mov ecx, dword [edi + 0x595c]
test ecx, ecx
je 0x409a44
mov eax, dword [0x44b4c0]
mov dword [edi + 0x5958], 0
mov dword [edi + 0x5954], 0
test eax, eax
je 0x409a34
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x595c], 0
mov ecx, dword [edi + 0x5aa0]
test ecx, ecx
je 0x409a81
mov eax, dword [0x44b4c0]
mov dword [edi + 0x5a9c], 0
mov dword [edi + 0x5a98], 0
test eax, eax
je 0x409a71
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5aa0], 0
mov ecx, dword [edi + 0x5a94]
test ecx, ecx
je 0x409abe
mov eax, dword [0x44b4c0]
mov dword [edi + 0x5a90], 0
mov dword [edi + 0x5a8c], 0
test eax, eax
je 0x409aae
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a94], 0
cmp dword [edi + 0x5ae8], 0
je 0x409af0
mov esi, dword [edi + 0x5ae8]
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 0x409ae6
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x5ae8], 0
mov ecx, dword [edi + 0x5af4]
test ecx, ecx
je 0x409b2d
mov eax, dword [0x44b4c0]
mov dword [edi + 0x5af0], 0
mov dword [edi + 0x5aec], 0
test eax, eax
je 0x409b1d
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5af4], 0
mov ecx, dword [edi + 0x5b20]
test ecx, ecx
je 0x409b6a
mov eax, dword [0x44b4c0]
mov dword [edi + 0x5b1c], 0
mov dword [edi + 0x5b18], 0
test eax, eax
je 0x409b5a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5b20], 0
mov ecx, dword [edi + 0x5b2c]
test ecx, ecx
je 0x409ba7
mov eax, dword [0x44b4c0]
mov dword [edi + 0x5b28], 0
mov dword [edi + 0x5b24], 0
test eax, eax
je 0x409b97
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5b2c], 0
mov dword [edi + 0x5b30], 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