Function at 0x40c6d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c87b0
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [0xc74718]
push esi
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
push edi
cmp dword [ebx + 0x74], 0
je 0x40c714
push 0xe31
push str.D:clientsWexsideLoaderFrontendexample_win32_directx9imguiimgui.cpp
push str._g.IO.BackendPlatformUserData__0____Forgot_to_shutdown_Platform_backend__
call esi
add esp, 0xc
cmp dword [ebx + 0x78], 0
je 0x40c72e
push 0xe32
push str.D:clientsWexsideLoaderFrontendexample_win32_directx9imguiimgui.cpp
push str._g.IO.BackendRendererUserData__0____Forgot_to_shutdown_Renderer_backend__
call esi
add esp, 0xc
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x40c747
cmp byte [ebx + 1], 0
je 0x40c747
mov byte [eax + 0x10], 0
mov ecx, dword [ebx + 0x2c]
call fcn.00425400
lea ecx, [ebx + 0x3d28]
mov dword [ebx + 0x2c], 0
call fcn.004078c0
cmp byte [ebx], 0
je 0x40cf7a
cmp byte [ebx + 0x5dbc], 0
je 0x40c7c2
mov esi, dword [ebx + 0x20]
test esi, esi
je 0x40c7c2
mov eax, dword [0xc74718]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [eax + 0x5dc0], 0
call fcn.00422fd0
mov edx, 0xbc2a84
mov ecx, esi
mov edi, eax
call fcn.0040a810
mov esi, eax
test esi, esi
je 0x40c7c2
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 1
push edi
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 [ebx + 0x5df4]
mov esi, dword [ebx + 0x5dfc]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x40c7ef
cmp dword [esi + 4], 6
jne 0x40c7e8
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x40c7d8
lea ecx, [ebx + 0x3f40]
mov dword [ebp - 0x10], 6
xor esi, esi
cmp dword [ecx], esi
jle 0x40c886
mov eax, dword [ecx + 8]
mov edi, dword [eax + esi*4]
test edi, edi
je 0x40c881
mov ecx, edi
call fcn.0040d790
mov ecx, dword [0xc74718]
test ecx, ecx
je 0x40c871
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x14], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x40c867
movsx eax, word [ecx + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x14]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [ebx + 0x3f40]
inc esi
cmp esi, dword [ecx]
jl 0x40c806
call fcn.004078c0
lea ecx, [ebx + 0x3f4c]
call fcn.004078c0
lea ecx, [ebx + 0x3f58]
call fcn.004078c0
mov dword [ebx + 0x3f8c], 0
mov esi, dword [ebx + 0x3f6c]
test esi, esi
je 0x40c930
mov ecx, dword [0xc74718]
mov dword [ebx + 0x3f68], 0
mov dword [ebx + 0x3f64], 0
test ecx, ecx
je 0x40c918
movsx edx, word [ecx + 0x5ee4]
lea eax, [ecx + 0x5ee8]
mov edi, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], edi
je 0x40c90e
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], edi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
add esp, 4
mov dword [ebx + 0x3f6c], 0
jmp 0x40c936
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea ecx, [ebx + 0x3f70]
call fcn.004078c0
or eax, 0xffffffff
mov dword [ebx + 0x4a38], 0
mov dword [ebx + 0x3f94], 0
lea edi, [ebx + 0x477c]
mov dword [ebx + 0x3f90], 0
mov ecx, 0x4d
mov dword [ebx + 0x400c], 0
mov dword [ebx + 0x3ffc], 0
mov dword [ebx + 0x3f98], 0
rep stosd dword es:[edi], eax
lea ecx, [ebx + 0x48b0]
call fcn.004078c0
lea ecx, [ebx + 0x48bc]
call fcn.004078c0
mov edi, dword [ebx + 0x49c8]
test edi, edi
je 0x40ca2f
mov ecx, dword [0xc74718]
mov dword [ebx + 0x49c4], 0
mov dword [ebx + 0x49c0], 0
test ecx, ecx
je 0x40ca1f
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x14], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x40ca15
movsx eax, word [ecx + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x14]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push edi
call esi
add esp, 4
mov dword [ebx + 0x49c8], 0
mov edi, dword [ebx + 0x49d4]
test edi, edi
je 0x40cabb
mov ecx, dword [0xc74718]
mov dword [ebx + 0x49d0], 0
mov dword [ebx + 0x49cc], 0
test ecx, ecx
je 0x40caab
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x14], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x40caa1
movsx eax, word [ecx + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x14]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push edi
call esi
add esp, 4
mov dword [ebx + 0x49d4], 0
lea ecx, [ebx + 0x49d8]
call fcn.004078c0
lea ecx, [ebx + 0x4a08]
call fcn.004078c0
lea ecx, [ebx + 0x4a14]
call fcn.004078c0
mov edi, dword [ebx + 0x4a28]
test edi, edi
je 0x40cb68
mov ecx, dword [0xc74718]
mov dword [ebx + 0x4a24], 0
mov dword [ebx + 0x4a20], 0
test ecx, ecx
je 0x40cb58
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x14], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x40cb4e
movsx eax, word [ecx + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x14]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push edi
call esi
add esp, 4
mov dword [ebx + 0x4a28], 0
lea ecx, [ebx + 0x4a2c]
call fcn.00424320
lea ecx, [ebx + 0x4d34]
call fcn.00424030
mov edi, dword [ebx + 0x4d5c]
test edi, edi
je 0x40cc0a
mov ecx, dword [0xc74718]
mov dword [ebx + 0x4d58], 0
mov dword [ebx + 0x4d54], 0
test ecx, ecx
je 0x40cbfa
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x14], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x40cbf0
movsx eax, word [ecx + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x14]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push edi
call esi
add esp, 4
mov dword [ebx + 0x4d5c], 0
mov edi, dword [ebx + 0x4d68]
test edi, edi
je 0x40cc96
mov ecx, dword [0xc74718]
mov dword [ebx + 0x4d64], 0
mov dword [ebx + 0x4d60], 0
test ecx, ecx
je 0x40cc86
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x14], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x40cc7c
movsx eax, word [ecx + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x14]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push edi
call esi
add esp, 4
mov dword [ebx + 0x4d68], 0
xor edi, edi
lea eax, [ebx + 0x4cdc]
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x4cd4], edi
jle 0x40ccd3
xor esi, esi
nop dword [eax + eax]
mov ecx, dword [eax]
add ecx, esi
call fcn.00407cb0
inc edi
lea eax, [ebx + 0x4cdc]
add esi, 0x1c
cmp edi, dword [ebx + 0x4cd4]
jl 0x40ccb0
lea eax, [ebx + 0x4cdc]
jmp 0x40ccd6
mov dword [ebp - 0x14], eax
mov esi, dword [eax]
test esi, esi
je 0x40cd52
mov ecx, dword [0xc74718]
mov dword [ebx + 0x4cd8], 0
mov dword [ebx + 0x4cd4], 0
test ecx, ecx
je 0x40cd3f
movsx edx, word [ecx + 0x5ee4]
lea eax, [ecx + 0x5ee8]
mov edi, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], edi
je 0x40cd35
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], edi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x14]
add esp, 4
mov dword [eax], 0
lea ecx, [ebx + 0x4cf8]
call fcn.004241b0
cmp dword [ebx + 0x4cec], 0
mov dword [ebp - 0x14], 0
jle 0x40cdaa
xor edi, edi
nop
mov esi, dword [ebx + 0x4cf4]
lea ecx, [esi + 0x14]
mov dword [ebp - 4], 0
add ecx, edi
call fcn.0042fc90
lea ecx, [esi + 0x1c]
add ecx, edi
call fcn.00423f90
mov eax, dword [ebp - 0x14]
add edi, 0x6c
inc eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
cmp eax, dword [ebx + 0x4cec]
jl 0x40cd70
mov esi, dword [ebx + 0x4cf4]
test esi, esi
je 0x40ce2f
mov ecx, dword [0xc74718]
mov dword [ebx + 0x4cf0], 0
mov dword [ebx + 0x4cec], 0
test ecx, ecx
je 0x40ce17
movsx edx, word [ecx + 0x5ee4]
lea eax, [ecx + 0x5ee8]
mov edi, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], edi
je 0x40ce0d
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], edi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
add esp, 4
mov dword [ebx + 0x4cf4], 0
jmp 0x40ce35
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea ecx, [ebx + 0x4d24]
call fcn.004078c0
lea ecx, [ebx + 0x5d24]
call fcn.004078c0
lea ecx, [ebx + 0x5d30]
call fcn.004078c0
lea ecx, [ebx + 0x4da4]
call fcn.004078c0
lea ecx, [ebx + 0x4db0]
call fcn.004078c0
lea ecx, [ebx + 0x4dbc]
call fcn.004078c0
lea ecx, [ebx + 0x5c1c]
mov dword [ebx + 0x5c18], 0
call fcn.004078c0
lea ecx, [ebx + 0x5ddc]
call fcn.004078c0
mov eax, dword [ebx + 0x5dd8]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40cf1a
mov ecx, dword [0xc74718]
mov dword [ebx + 0x5dd4], 0
mov dword [ebx + 0x5dd0], 0
test ecx, ecx
je 0x40cf0a
movsx edx, word [ecx + 0x5ee4]
lea eax, [ecx + 0x5ee8]
mov edi, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], edi
je 0x40cefd
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], edi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
mov eax, dword [ebp - 0x14]
push eax
call esi
add esp, 4
mov dword [ebx + 0x5dd8], 0
cmp dword [ebx + 0x5e2c], 0
je 0x40cf4c
mov esi, dword [ebx + 0x5e2c]
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 0x40cf42
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [ebx + 0x5e2c], 0
lea ecx, [ebx + 0x5e30]
call fcn.004078c0
lea ecx, [ebx + 0x5e5c]
call fcn.004078c0
lea ecx, [ebx + 0x5e68]
call fcn.004078c0
mov dword [ebx + 0x5e74], 0
mov byte [ebx], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret