Function at 0x4097b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc260
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4ef400]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x98]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x40981a
cmp byte [edi + 1], 0
je 0x40981a
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x98]
test esi, esi
je 0x40981a
mov ecx, esi
call fcn.0042f660
mov eax, dword [0x4f0690]
test eax, eax
je 0x409814
dec dword [eax + 0x370]
push esi
call ebx
add esp, 4
cmp byte [edi], 0
mov dword [edi + 0x98], 0
je 0x40a169
cmp byte [edi + 0x309c], 0
je 0x40989b
mov esi, dword [edi + 0x20]
test esi, esi
je 0x40989b
mov eax, dword [0x4f0690]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [0x4f0690], edi
mov dword [edi + 0x30a0], 0
mov dword [ebp - 0x10], 0
call fcn.00418610
mov edx, 0x4de9c0
mov dword [ebp - 0x18], eax
mov ecx, esi
call fcn.00403a00
mov esi, eax
test esi, esi
je 0x4098a3
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push 1
push dword [ebp - 0x18]
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
jmp 0x4098a3
mov eax, dword [0x4f0690]
mov dword [ebp - 0x14], eax
mov dword [0x4f0690], edi
call fcn.0041aac0
mov eax, dword [ebp - 0x14]
xor esi, esi
mov dword [0x4f0690], eax
cmp dword [edi + 0x3074], esi
jle 0x4098f8
mov eax, dword [edi + 0x307c]
mov eax, dword [eax + esi*8 + 4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4098ef
mov ecx, eax
call fcn.0041be90
mov eax, dword [0x4f0690]
test eax, eax
je 0x4098e7
dec dword [eax + 0x370]
push dword [ebp - 0x18]
call ebx
add esp, 4
inc esi
cmp esi, dword [edi + 0x3074]
jl 0x4098c0
xor esi, esi
cmp dword [edi + 0x30d4], esi
jle 0x40993a
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop word [eax + eax]
mov edx, dword [edi + 0x30dc]
add edx, ecx
cmp dword [edx + 4], 6
jne 0x40992b
mov eax, dword [edx + 0xc]
push edx
push edi
call eax
mov ecx, dword [ebp - 0x14]
add esp, 8
inc esi
add ecx, 0x14
mov dword [ebp - 0x14], ecx
cmp esi, dword [edi + 0x30d4]
jl 0x409910
xor esi, esi
lea ecx, [edi + 0x1c0c]
mov dword [ebp - 0x14], ecx
cmp dword [edi + 0x1c04], esi
jle 0x40998b
nop dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x409980
mov ecx, eax
call fcn.00406740
mov eax, dword [0x4f0690]
test eax, eax
je 0x409972
dec dword [eax + 0x370]
push dword [ebp - 0x18]
call ebx
add esp, 4
lea ecx, [edi + 0x1c0c]
inc esi
cmp esi, dword [edi + 0x1c04]
jl 0x409950
jmp 0x40998e
mov dword [ebp - 0x14], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x4099c6
mov eax, dword [0x4f0690]
mov dword [edi + 0x1c08], 0
mov dword [edi + 0x1c04], 0
test eax, eax
je 0x4099b7
dec dword [eax + 0x370]
push ecx
call ebx
mov eax, dword [ebp - 0x14]
add esp, 4
mov dword [eax], 0
mov ecx, dword [edi + 0x1c18]
test ecx, ecx
je 0x409a03
mov eax, dword [0x4f0690]
mov dword [edi + 0x1c14], 0
mov dword [edi + 0x1c10], 0
test eax, eax
je 0x4099f3
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1c18], 0
mov ecx, dword [edi + 0x1c24]
test ecx, ecx
je 0x409a40
mov eax, dword [0x4f0690]
mov dword [edi + 0x1c20], 0
mov dword [edi + 0x1c1c], 0
test eax, eax
je 0x409a30
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1c24], 0
mov dword [edi + 0x1c4c], 0
mov ecx, dword [edi + 0x1c30]
test ecx, ecx
je 0x409a87
mov eax, dword [0x4f0690]
mov dword [edi + 0x1c2c], 0
mov dword [edi + 0x1c28], 0
test eax, eax
je 0x409a77
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1c30], 0
mov ecx, dword [edi + 0x1c3c]
test ecx, ecx
je 0x409ac4
mov eax, dword [0x4f0690]
mov dword [edi + 0x1c38], 0
mov dword [edi + 0x1c34], 0
test eax, eax
je 0x409ab4
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1c3c], 0
mov dword [edi + 0x1e5c], 0
mov dword [edi + 0x1c54], 0
mov dword [edi + 0x1c50], 0
mov dword [edi + 0x1ccc], 0
mov dword [edi + 0x1cb8], 0
mov dword [edi + 0x1c5c], 0
mov ecx, dword [edi + 0x1dbc]
test ecx, ecx
je 0x409b3d
mov eax, dword [0x4f0690]
mov dword [edi + 0x1db8], 0
mov dword [edi + 0x1db4], 0
test eax, eax
je 0x409b2d
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1dbc], 0
mov ecx, dword [edi + 0x1dc8]
test ecx, ecx
je 0x409b7a
mov eax, dword [0x4f0690]
mov dword [edi + 0x1dc4], 0
mov dword [edi + 0x1dc0], 0
test eax, eax
je 0x409b6a
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1dc8], 0
mov ecx, dword [edi + 0x1dd4]
test ecx, ecx
je 0x409bb7
mov eax, dword [0x4f0690]
mov dword [edi + 0x1dd0], 0
mov dword [edi + 0x1dcc], 0
test eax, eax
je 0x409ba7
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1dd4], 0
mov ecx, dword [edi + 0x1e04]
test ecx, ecx
je 0x409bf4
mov eax, dword [0x4f0690]
mov dword [edi + 0x1e00], 0
mov dword [edi + 0x1dfc], 0
test eax, eax
je 0x409be4
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1e04], 0
mov ecx, dword [edi + 0x1e10]
test ecx, ecx
je 0x409c31
mov eax, dword [0x4f0690]
mov dword [edi + 0x1e0c], 0
mov dword [edi + 0x1e08], 0
test eax, eax
je 0x409c21
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1e10], 0
xor ecx, ecx
mov dword [edi + 0x1e2c], 0
mov dword [edi + 0x1e28], 0
mov dword [edi + 0x1e24], 0
mov dword [ebp - 0x14], ecx
cmp dword [edi + 0x1e14], ecx
jle 0x409d10
mov eax, dword [edi + 0x1e1c]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x409d00
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x409ca0
mov ecx, eax
call fcn.00401930
mov eax, dword [0x4f0690]
test eax, eax
je 0x409c98
dec dword [eax + 0x370]
push dword [ebp - 0x18]
call ebx
add esp, 4
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x409cc8
mov ecx, eax
call fcn.00401930
mov eax, dword [0x4f0690]
test eax, eax
je 0x409cc0
dec dword [eax + 0x370]
push dword [ebp - 0x18]
call ebx
add esp, 4
push 0x423070
push 2
push 0xc
lea eax, [esi + 0xb0]
mov byte [ebp - 4], 1
push eax
call fcn.004ca696
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4f0690]
test eax, eax
je 0x409cf7
dec dword [eax + 0x370]
push esi
call ebx
mov ecx, dword [ebp - 0x14]
add esp, 4
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [edi + 0x1e14]
jl 0x409c60
mov ecx, dword [edi + 0x1e1c]
test ecx, ecx
je 0x409d4d
mov eax, dword [0x4f0690]
mov dword [edi + 0x1e18], 0
mov dword [edi + 0x1e14], 0
test eax, eax
je 0x409d3d
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1e1c], 0
lea ecx, [edi + 0x20bc]
call fcn.00423350
mov ecx, dword [edi + 0x20e4]
test ecx, ecx
je 0x409d95
mov eax, dword [0x4f0690]
mov dword [edi + 0x20e0], 0
mov dword [edi + 0x20dc], 0
test eax, eax
je 0x409d85
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x20e4], 0
mov ecx, dword [edi + 0x20f0]
test ecx, ecx
je 0x409dd2
mov eax, dword [0x4f0690]
mov dword [edi + 0x20ec], 0
mov dword [edi + 0x20e8], 0
test eax, eax
je 0x409dc2
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x20f0], 0
xor esi, esi
cmp dword [edi + 0x2060], esi
jle 0x409e1d
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [edi + 0x2068]
mov edx, dword [eax + ecx + 0x14]
test edx, edx
je 0x409e07
mov eax, dword [0x4f0690]
test eax, eax
je 0x409dfe
dec dword [eax + 0x370]
push edx
call ebx
mov ecx, dword [ebp - 0x14]
add esp, 4
inc esi
mov dword [ebp - 4], 0xffffffff
add ecx, 0x18
mov dword [ebp - 0x14], ecx
cmp esi, dword [edi + 0x2060]
jl 0x409de1
mov ecx, dword [edi + 0x2068]
test ecx, ecx
je 0x409e5a
mov eax, dword [0x4f0690]
mov dword [edi + 0x2064], 0
mov dword [edi + 0x2060], 0
test eax, eax
je 0x409e4a
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2068], 0
lea ecx, [edi + 0x2080]
call fcn.00423500
cmp dword [edi + 0x2074], 0
mov dword [ebp - 0x14], 0
jle 0x409ed2
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
mov esi, dword [edi + 0x207c]
add esi, ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 3
call fcn.0042ee70
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x409eb3
mov eax, dword [0x4f0690]
test eax, eax
je 0x409ead
dec dword [eax + 0x370]
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 + 0x2074]
jl 0x409e80
mov ecx, dword [edi + 0x207c]
test ecx, ecx
je 0x409f0f
mov eax, dword [0x4f0690]
mov dword [edi + 0x2078], 0
mov dword [edi + 0x2074], 0
test eax, eax
je 0x409eff
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x207c], 0
mov ecx, dword [edi + 0x20b4]
test ecx, ecx
je 0x409f4c
mov eax, dword [0x4f0690]
mov dword [edi + 0x20b0], 0
mov dword [edi + 0x20ac], 0
test eax, eax
je 0x409f3c
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x20b4], 0
mov ecx, dword [edi + 0x304c]
test ecx, ecx
je 0x409f89
mov eax, dword [0x4f0690]
mov dword [edi + 0x3048], 0
mov dword [edi + 0x3044], 0
test eax, eax
je 0x409f79
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x304c], 0
mov ecx, dword [edi + 0x3058]
test ecx, ecx
je 0x409fc6
mov eax, dword [0x4f0690]
mov dword [edi + 0x3054], 0
mov dword [edi + 0x3050], 0
test eax, eax
je 0x409fb6
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3058], 0
mov ecx, dword [edi + 0x2110]
test ecx, ecx
je 0x40a003
mov eax, dword [0x4f0690]
mov dword [edi + 0x210c], 0
mov dword [edi + 0x2108], 0
test eax, eax
je 0x409ff3
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2110], 0
mov ecx, dword [edi + 0x211c]
test ecx, ecx
je 0x40a040
mov eax, dword [0x4f0690]
mov dword [edi + 0x2118], 0
mov dword [edi + 0x2114], 0
test eax, eax
je 0x40a030
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x211c], 0
mov ecx, dword [edi + 0x2128]
test ecx, ecx
je 0x40a07d
mov eax, dword [0x4f0690]
mov dword [edi + 0x2124], 0
mov dword [edi + 0x2120], 0
test eax, eax
je 0x40a06d
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2128], 0
mov ecx, dword [edi + 0x30c4]
test ecx, ecx
je 0x40a0ba
mov eax, dword [0x4f0690]
mov dword [edi + 0x30c0], 0
mov dword [edi + 0x30bc], 0
test eax, eax
je 0x40a0aa
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x30c4], 0
mov ecx, dword [edi + 0x30b8]
test ecx, ecx
je 0x40a0f7
mov eax, dword [0x4f0690]
mov dword [edi + 0x30b4], 0
mov dword [edi + 0x30b0], 0
test eax, eax
je 0x40a0e7
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x30b8], 0
cmp dword [edi + 0x30ec], 0
je 0x40a129
mov esi, dword [edi + 0x30ec]
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 0x40a11f
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x30ec], 0
mov ecx, dword [edi + 0x30f8]
test ecx, ecx
je 0x40a166
mov eax, dword [0x4f0690]
mov dword [edi + 0x30f4], 0
mov dword [edi + 0x30f0], 0
test eax, eax
je 0x40a156
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x30f8], 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