Function at 0x409720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esi + 0x98]
test eax, eax
je 0x40976b
cmp byte [esi + 1], 0
je 0x40976b
mov byte [eax + 0x10], 0
mov ebx, dword [esi + 0x98]
test ebx, ebx
je 0x40976b
mov ecx, ebx
call fcn.00431ea0
mov eax, dword [0x4883e0]
test eax, eax
je 0x409765
dec dword [eax + 0x374]
push ebx
call edi
add esp, 4
cmp byte [esi], 0
mov dword [esi + 0x98], 0
je 0x409f4d
cmp byte [esi + 0x2fe0], 0
je 0x4097e5
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x4097e5
mov eax, dword [0x4883e0]
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
mov dword [0x4883e0], esi
mov dword [esi + 0x2fe4], 0
mov dword [ebp - 4], 0
call fcn.004191a0
mov edx, 0x44a5a4
mov dword [ebp - 0xc], eax
mov ecx, ebx
call fcn.004042c0
mov ebx, eax
test ebx, ebx
je 0x4097ed
push ebx
push dword [ebp - 4]
push 1
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
jmp 0x4097ed
mov eax, dword [0x4883e0]
mov dword [ebp - 8], eax
mov dword [0x4883e0], esi
call fcn.0041bd40
mov eax, dword [ebp - 8]
xor ebx, ebx
mov dword [0x4883e0], eax
mov eax, dword [esi + 0x2fb8]
test eax, eax
jle 0x40986a
nop dword [eax]
test ebx, ebx
js 0x409818
cmp ebx, eax
jl 0x409830
push 0x6c8
push str.C:Usersp6280DesktopImGui_Loader_Base_masterimguiimgui.h
push str.i___0__i___Size
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [esi + 0x2fc0]
mov eax, dword [eax + ebx*8 + 4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40985f
mov ecx, eax
call fcn.0041d600
mov eax, dword [0x4883e0]
test eax, eax
je 0x409857
dec dword [eax + 0x374]
push dword [ebp - 0xc]
call edi
add esp, 4
mov eax, dword [esi + 0x2fb8]
inc ebx
cmp ebx, eax
jl 0x409810
mov edx, 6
mov ecx, esi
call fcn.00406d80
mov eax, dword [esi + 0x1c00]
xor ebx, ebx
test eax, eax
jle 0x4098db
test ebx, ebx
js 0x40988a
cmp ebx, eax
jl 0x4098a2
push 0x6c8
push str.C:Usersp6280DesktopImGui_Loader_Base_masterimguiimgui.h
push str.i___0__i___Size
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [esi + 0x1c08]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4098d0
mov ecx, eax
call fcn.00406500
mov eax, dword [0x4883e0]
test eax, eax
je 0x4098c8
dec dword [eax + 0x374]
push dword [ebp - 0xc]
call edi
add esp, 4
mov eax, dword [esi + 0x1c00]
inc ebx
cmp ebx, eax
jl 0x409882
mov ecx, dword [esi + 0x1c08]
test ecx, ecx
je 0x409918
mov eax, dword [0x4883e0]
mov dword [esi + 0x1c04], 0
mov dword [esi + 0x1c00], 0
test eax, eax
je 0x409908
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1c08], 0
mov ecx, dword [esi + 0x1c14]
test ecx, ecx
je 0x409955
mov eax, dword [0x4883e0]
mov dword [esi + 0x1c10], 0
mov dword [esi + 0x1c0c], 0
test eax, eax
je 0x409945
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1c14], 0
mov ecx, dword [esi + 0x1c20]
test ecx, ecx
je 0x409992
mov eax, dword [0x4883e0]
mov dword [esi + 0x1c1c], 0
mov dword [esi + 0x1c18], 0
test eax, eax
je 0x409982
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1c20], 0
mov dword [esi + 0x1c48], 0
mov ecx, dword [esi + 0x1c2c]
test ecx, ecx
je 0x4099d9
mov eax, dword [0x4883e0]
mov dword [esi + 0x1c28], 0
mov dword [esi + 0x1c24], 0
test eax, eax
je 0x4099c9
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1c2c], 0
mov ecx, dword [esi + 0x1c38]
test ecx, ecx
je 0x409a16
mov eax, dword [0x4883e0]
mov dword [esi + 0x1c34], 0
mov dword [esi + 0x1c30], 0
test eax, eax
je 0x409a06
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1c38], 0
mov dword [esi + 0x1e18], 0
mov dword [esi + 0x1c50], 0
mov dword [esi + 0x1c4c], 0
mov dword [esi + 0x1cc4], 0
mov dword [esi + 0x1cb0], 0
mov dword [esi + 0x1c58], 0
mov ecx, dword [esi + 0x1d78]
test ecx, ecx
je 0x409a8f
mov eax, dword [0x4883e0]
mov dword [esi + 0x1d74], 0
mov dword [esi + 0x1d70], 0
test eax, eax
je 0x409a7f
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1d78], 0
mov ecx, dword [esi + 0x1d84]
test ecx, ecx
je 0x409acc
mov eax, dword [0x4883e0]
mov dword [esi + 0x1d80], 0
mov dword [esi + 0x1d7c], 0
test eax, eax
je 0x409abc
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1d84], 0
mov ecx, dword [esi + 0x1d90]
test ecx, ecx
je 0x409b09
mov eax, dword [0x4883e0]
mov dword [esi + 0x1d8c], 0
mov dword [esi + 0x1d88], 0
test eax, eax
je 0x409af9
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1d90], 0
mov ecx, dword [esi + 0x1dc0]
test ecx, ecx
je 0x409b46
mov eax, dword [0x4883e0]
mov dword [esi + 0x1dbc], 0
mov dword [esi + 0x1db8], 0
test eax, eax
je 0x409b36
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1dc0], 0
mov ecx, dword [esi + 0x1dcc]
test ecx, ecx
je 0x409b83
mov eax, dword [0x4883e0]
mov dword [esi + 0x1dc8], 0
mov dword [esi + 0x1dc4], 0
test eax, eax
je 0x409b73
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1dcc], 0
mov eax, dword [esi + 0x1dd0]
xor ebx, ebx
mov dword [esi + 0x1de8], 0
mov dword [esi + 0x1de4], 0
mov dword [esi + 0x1de0], 0
test eax, eax
jle 0x409be9
nop dword [eax]
test ebx, ebx
js 0x409bb8
cmp ebx, eax
jl 0x409bd0
push 0x6c8
push str.C:Usersp6280DesktopImGui_Loader_Base_masterimguiimgui.h
push str.i___0__i___Size
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [esi + 0x1dd8]
mov ecx, dword [ecx + ebx*4]
call fcn.00426cb0
mov eax, dword [esi + 0x1dd0]
inc ebx
cmp ebx, eax
jl 0x409bb0
mov ecx, dword [esi + 0x1dd8]
test ecx, ecx
je 0x409c26
mov eax, dword [0x4883e0]
mov dword [esi + 0x1dd4], 0
mov dword [esi + 0x1dd0], 0
test eax, eax
je 0x409c16
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1dd8], 0
lea ecx, [esi + 0x2034]
call fcn.00425ec0
mov ecx, dword [esi + 0x2058]
test ecx, ecx
je 0x409c6e
mov eax, dword [0x4883e0]
mov dword [esi + 0x2054], 0
mov dword [esi + 0x2050], 0
test eax, eax
je 0x409c5e
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2058], 0
mov ecx, dword [esi + 0x2064]
test ecx, ecx
je 0x409cab
mov eax, dword [0x4883e0]
mov dword [esi + 0x2060], 0
mov dword [esi + 0x205c], 0
test eax, eax
je 0x409c9b
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2064], 0
lea ecx, [esi + 0x1ff0]
call fcn.004260c0
mov ecx, dword [esi + 0x2014]
test ecx, ecx
je 0x409cf3
mov eax, dword [0x4883e0]
mov dword [esi + 0x2010], 0
mov dword [esi + 0x200c], 0
test eax, eax
je 0x409ce3
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2014], 0
mov ecx, dword [esi + 0x202c]
test ecx, ecx
je 0x409d30
mov eax, dword [0x4883e0]
mov dword [esi + 0x2028], 0
mov dword [esi + 0x2024], 0
test eax, eax
je 0x409d20
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x202c], 0
mov ecx, dword [esi + 0x2f90]
test ecx, ecx
je 0x409d6d
mov eax, dword [0x4883e0]
mov dword [esi + 0x2f8c], 0
mov dword [esi + 0x2f88], 0
test eax, eax
je 0x409d5d
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2f90], 0
mov ecx, dword [esi + 0x2f9c]
test ecx, ecx
je 0x409daa
mov eax, dword [0x4883e0]
mov dword [esi + 0x2f98], 0
mov dword [esi + 0x2f94], 0
test eax, eax
je 0x409d9a
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2f9c], 0
mov ecx, dword [esi + 0x2084]
test ecx, ecx
je 0x409de7
mov eax, dword [0x4883e0]
mov dword [esi + 0x2080], 0
mov dword [esi + 0x207c], 0
test eax, eax
je 0x409dd7
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2084], 0
mov ecx, dword [esi + 0x2090]
test ecx, ecx
je 0x409e24
mov eax, dword [0x4883e0]
mov dword [esi + 0x208c], 0
mov dword [esi + 0x2088], 0
test eax, eax
je 0x409e14
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2090], 0
mov ecx, dword [esi + 0x209c]
test ecx, ecx
je 0x409e61
mov eax, dword [0x4883e0]
mov dword [esi + 0x2098], 0
mov dword [esi + 0x2094], 0
test eax, eax
je 0x409e51
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x209c], 0
mov ecx, dword [esi + 0x3008]
test ecx, ecx
je 0x409e9e
mov eax, dword [0x4883e0]
mov dword [esi + 0x3004], 0
mov dword [esi + 0x3000], 0
test eax, eax
je 0x409e8e
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x3008], 0
mov ecx, dword [esi + 0x2ffc]
test ecx, ecx
je 0x409edb
mov eax, dword [0x4883e0]
mov dword [esi + 0x2ff8], 0
mov dword [esi + 0x2ff4], 0
test eax, eax
je 0x409ecb
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x2ffc], 0
cmp dword [esi + 0x3030], 0
je 0x409f0d
mov ebx, dword [esi + 0x3030]
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp ebx, eax
je 0x409f03
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [esi + 0x3030], 0
mov ecx, dword [esi + 0x303c]
test ecx, ecx
je 0x409f4a
mov eax, dword [0x4883e0]
mov dword [esi + 0x3038], 0
mov dword [esi + 0x3034], 0
test eax, eax
je 0x409f3a
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x303c], 0
mov byte [esi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret