Function at 0x41be30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ab90
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x46c040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x493db8]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [edi + 0x40]
test eax, eax
je 0x41be98
cmp byte [edi + 1], 0
je 0x41be98
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x40]
test esi, esi
je 0x41be98
mov ecx, esi
call fcn.00435d60
mov eax, dword [0x493db8]
test eax, eax
je 0x41be92
dec dword [eax + 0xa8]
push esi
call ebx
add esp, 4
cmp byte [edi], 0
mov dword [edi + 0x40], 0
je 0x41c73d
cmp byte [edi + 0x5201], 0
je 0x41bf0b
mov esi, dword [edi + 0x20]
test esi, esi
je 0x41bf0b
mov eax, dword [0x493db8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [eax + 0x5204], 0
call fcn.00429430
mov edx, 0x467274
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.004177c0
mov esi, eax
test esi, esi
je 0x41bf0b
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
xor esi, esi
cmp dword [edi + 0x5238], esi
jle 0x41bf4a
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
mov eax, dword [edi + 0x5240]
add eax, ecx
cmp dword [eax + 4], 6
jne 0x41bf3b
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
mov ecx, dword [ebp - 0x10]
add esp, 8
inc esi
add ecx, 0x14
mov dword [ebp - 0x10], ecx
cmp esi, dword [edi + 0x5238]
jl 0x41bf20
xor esi, esi
lea ecx, [edi + 0x3df0]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x3de8], esi
jle 0x41bf9b
nop dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41bf90
mov ecx, eax
call fcn.00419100
mov eax, dword [0x493db8]
test eax, eax
je 0x41bf82
dec dword [eax + 0xa8]
push dword [ebp - 0x14]
call ebx
add esp, 4
lea ecx, [edi + 0x3df0]
inc esi
cmp esi, dword [edi + 0x3de8]
jl 0x41bf60
jmp 0x41bf9e
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x41bfd6
mov eax, dword [0x493db8]
mov dword [edi + 0x3dec], 0
mov dword [edi + 0x3de8], 0
test eax, eax
je 0x41bfc7
dec dword [eax + 0xa8]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax], 0
mov ecx, dword [edi + 0x3dfc]
test ecx, ecx
je 0x41c013
mov eax, dword [0x493db8]
mov dword [edi + 0x3df8], 0
mov dword [edi + 0x3df4], 0
test eax, eax
je 0x41c003
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3dfc], 0
mov ecx, dword [edi + 0x3e08]
test ecx, ecx
je 0x41c050
mov eax, dword [0x493db8]
mov dword [edi + 0x3e04], 0
mov dword [edi + 0x3e00], 0
test eax, eax
je 0x41c040
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e08], 0
mov dword [edi + 0x3e30], 0
mov ecx, dword [edi + 0x3e14]
test ecx, ecx
je 0x41c097
mov eax, dword [0x493db8]
mov dword [edi + 0x3e10], 0
mov dword [edi + 0x3e0c], 0
test eax, eax
je 0x41c087
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e14], 0
mov ecx, dword [edi + 0x3e20]
test ecx, ecx
je 0x41c0d4
mov eax, dword [0x493db8]
mov dword [edi + 0x3e1c], 0
mov dword [edi + 0x3e18], 0
test eax, eax
je 0x41c0c4
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e20], 0
mov dword [edi + 0x3fe8], 0
mov dword [edi + 0x3e38], 0
mov dword [edi + 0x3e34], 0
mov dword [edi + 0x3e98], 0
mov dword [edi + 0x3e84], 0
mov dword [edi + 0x3e3c], 0
mov ecx, dword [edi + 0x3f80]
test ecx, ecx
je 0x41c14d
mov eax, dword [0x493db8]
mov dword [edi + 0x3f7c], 0
mov dword [edi + 0x3f78], 0
test eax, eax
je 0x41c13d
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3f80], 0
mov ecx, dword [edi + 0x3f8c]
test ecx, ecx
je 0x41c18a
mov eax, dword [0x493db8]
mov dword [edi + 0x3f88], 0
mov dword [edi + 0x3f84], 0
test eax, eax
je 0x41c17a
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3f8c], 0
mov ecx, dword [edi + 0x3f98]
test ecx, ecx
je 0x41c1c7
mov eax, dword [0x493db8]
mov dword [edi + 0x3f94], 0
mov dword [edi + 0x3f90], 0
test eax, eax
je 0x41c1b7
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3f98], 0
mov ecx, dword [edi + 0x3fc8]
test ecx, ecx
je 0x41c204
mov eax, dword [0x493db8]
mov dword [edi + 0x3fc4], 0
mov dword [edi + 0x3fc0], 0
test eax, eax
je 0x41c1f4
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3fc8], 0
mov ecx, dword [edi + 0x3fd4]
test ecx, ecx
je 0x41c241
mov eax, dword [0x493db8]
mov dword [edi + 0x3fd0], 0
mov dword [edi + 0x3fcc], 0
test eax, eax
je 0x41c231
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3fd4], 0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x3fdc], ecx
jle 0x41c2fb
mov eax, dword [edi + 0x3fe4]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x41c2eb
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41c28b
mov ecx, eax
call fcn.004159b0
mov eax, dword [0x493db8]
test eax, eax
je 0x41c283
dec dword [eax + 0xa8]
push dword [ebp - 0x14]
call ebx
add esp, 4
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41c2b3
mov ecx, eax
call fcn.004159b0
mov eax, dword [0x493db8]
test eax, eax
je 0x41c2ab
dec dword [eax + 0xa8]
push dword [ebp - 0x14]
call ebx
add esp, 4
push 0x42a3b0
push 2
push 0xc
lea eax, [esi + 0x64]
mov dword [ebp - 4], 0
push eax
call fcn.00448841
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x493db8]
test eax, eax
je 0x41c2e2
dec dword [eax + 0xa8]
push esi
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [edi + 0x3fdc]
jl 0x41c252
mov ecx, dword [edi + 0x3fe4]
test ecx, ecx
je 0x41c338
mov eax, dword [0x493db8]
mov dword [edi + 0x3fe0], 0
mov dword [edi + 0x3fdc], 0
test eax, eax
je 0x41c328
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3fe4], 0
lea ecx, [edi + 0x4248]
call fcn.00429ea0
mov ecx, dword [edi + 0x4270]
test ecx, ecx
je 0x41c380
mov eax, dword [0x493db8]
mov dword [edi + 0x426c], 0
mov dword [edi + 0x4268], 0
test eax, eax
je 0x41c370
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4270], 0
mov ecx, dword [edi + 0x427c]
test ecx, ecx
je 0x41c3bd
mov eax, dword [0x493db8]
mov dword [edi + 0x4278], 0
mov dword [edi + 0x4274], 0
test eax, eax
je 0x41c3ad
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x427c], 0
xor esi, esi
cmp dword [edi + 0x41ec], esi
jle 0x41c405
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop dword [eax]
mov eax, dword [edi + 0x41f4]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x41c3f6
mov eax, dword [0x493db8]
test eax, eax
je 0x41c3ed
dec dword [eax + 0xa8]
push edx
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
inc esi
add ecx, 0x1c
mov dword [ebp - 0x10], ecx
cmp esi, dword [edi + 0x41ec]
jl 0x41c3d0
mov ecx, dword [edi + 0x41f4]
test ecx, ecx
je 0x41c442
mov eax, dword [0x493db8]
mov dword [edi + 0x41f0], 0
mov dword [edi + 0x41ec], 0
test eax, eax
je 0x41c432
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x41f4], 0
lea ecx, [edi + 0x420c]
call fcn.00429f90
cmp dword [edi + 0x4200], 0
mov dword [ebp - 0x10], 0
jle 0x41c4a6
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov esi, dword [edi + 0x4208]
add esi, ecx
lea ecx, [esi + 0x10]
call fcn.00435690
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41c48e
mov eax, dword [0x493db8]
test eax, eax
je 0x41c488
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
inc eax
add ecx, 0x68
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, dword [edi + 0x4200]
jl 0x41c462
mov ecx, dword [edi + 0x4208]
test ecx, ecx
je 0x41c4e3
mov eax, dword [0x493db8]
mov dword [edi + 0x4204], 0
mov dword [edi + 0x4200], 0
test eax, eax
je 0x41c4d3
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4208], 0
mov ecx, dword [edi + 0x4240]
test ecx, ecx
je 0x41c520
mov eax, dword [0x493db8]
mov dword [edi + 0x423c], 0
mov dword [edi + 0x4238], 0
test eax, eax
je 0x41c510
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4240], 0
mov ecx, dword [edi + 0x51d0]
test ecx, ecx
je 0x41c55d
mov eax, dword [0x493db8]
mov dword [edi + 0x51cc], 0
mov dword [edi + 0x51c8], 0
test eax, eax
je 0x41c54d
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x51d0], 0
mov ecx, dword [edi + 0x51dc]
test ecx, ecx
je 0x41c59a
mov eax, dword [0x493db8]
mov dword [edi + 0x51d8], 0
mov dword [edi + 0x51d4], 0
test eax, eax
je 0x41c58a
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x51dc], 0
mov ecx, dword [edi + 0x429c]
test ecx, ecx
je 0x41c5d7
mov eax, dword [0x493db8]
mov dword [edi + 0x4298], 0
mov dword [edi + 0x4294], 0
test eax, eax
je 0x41c5c7
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x429c], 0
mov ecx, dword [edi + 0x42a8]
test ecx, ecx
je 0x41c614
mov eax, dword [0x493db8]
mov dword [edi + 0x42a4], 0
mov dword [edi + 0x42a0], 0
test eax, eax
je 0x41c604
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x42a8], 0
mov ecx, dword [edi + 0x42b4]
test ecx, ecx
je 0x41c651
mov eax, dword [0x493db8]
mov dword [edi + 0x42b0], 0
mov dword [edi + 0x42ac], 0
test eax, eax
je 0x41c641
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x42b4], 0
mov ecx, dword [edi + 0x5228]
test ecx, ecx
je 0x41c68e
mov eax, dword [0x493db8]
mov dword [edi + 0x5224], 0
mov dword [edi + 0x5220], 0
test eax, eax
je 0x41c67e
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5228], 0
mov ecx, dword [edi + 0x521c]
test ecx, ecx
je 0x41c6cb
mov eax, dword [0x493db8]
mov dword [edi + 0x5218], 0
mov dword [edi + 0x5214], 0
test eax, eax
je 0x41c6bb
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x521c], 0
cmp dword [edi + 0x5250], 0
je 0x41c6fd
mov esi, dword [edi + 0x5250]
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 0x41c6f3
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x5250], 0
mov ecx, dword [edi + 0x525c]
test ecx, ecx
je 0x41c73a
mov eax, dword [0x493db8]
mov dword [edi + 0x5258], 0
mov dword [edi + 0x5254], 0
test eax, eax
je 0x41c72a
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x525c], 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