Function at 0x4082e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x433db0
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x4c6a70]
push ebx
push esi
push edi
mov edi, eax
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x408323
cmp byte [edi + 1], 0
je 0x408323
mov byte [ecx + 0x10], 0
mov ecx, dword [edi + 0x48]
call fcn.00419b80
mov eax, dword [0x4c6a70]
cmp byte [edi], 0
mov dword [edi + 0x48], 0
je 0x408bed
cmp byte [edi + 0x5205], 0
je 0x40838e
mov esi, dword [edi + 0x20]
test esi, esi
je 0x40838e
lea ecx, [ebp - 0x10]
mov dword [eax + 0x5208], 0
mov dword [ebp - 0x10], 0
call fcn.00418080
mov edx, 0x438934
mov ecx, esi
mov ebx, eax
call fcn.00403240
mov esi, eax
test esi, esi
je 0x40838e
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push 1
push ebx
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 edx, 6
mov ecx, edi
call fcn.00405480
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea esi, [edi + 0x3dd8]
xor edx, edx
mov dword [ebp - 0x10], edx
cmp dword [edi + 0x3dd0], edx
jle 0x408401
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [esi]
mov esi, dword [ecx + eax]
test esi, esi
je 0x4083e3
mov ecx, esi
call fcn.00404ce0
mov eax, dword [0x4c6a70]
test eax, eax
je 0x4083d7
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 + 0x3dd8]
add ecx, 4
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
cmp edx, dword [edi + 0x3dd0]
jl 0x4083b8
lea esi, [edi + 0x3dd8]
mov ecx, dword [esi]
test ecx, ecx
je 0x408436
mov eax, dword [0x4c6a70]
mov dword [edi + 0x3dd4], 0
mov dword [edi + 0x3dd0], 0
test eax, eax
je 0x40842a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [esi], 0
mov ecx, dword [edi + 0x3de4]
test ecx, ecx
je 0x408473
mov eax, dword [0x4c6a70]
mov dword [edi + 0x3de0], 0
mov dword [edi + 0x3ddc], 0
test eax, eax
je 0x408463
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3de4], 0
mov ecx, dword [edi + 0x3df0]
test ecx, ecx
je 0x4084b0
mov eax, dword [0x4c6a70]
mov dword [edi + 0x3dec], 0
mov dword [edi + 0x3de8], 0
test eax, eax
je 0x4084a0
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3df0], 0
mov dword [edi + 0x3e18], 0
mov ecx, dword [edi + 0x3dfc]
test ecx, ecx
je 0x4084f7
mov eax, dword [0x4c6a70]
mov dword [edi + 0x3df8], 0
mov dword [edi + 0x3df4], 0
test eax, eax
je 0x4084e7
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3dfc], 0
mov ecx, dword [edi + 0x3e08]
test ecx, ecx
je 0x408534
mov eax, dword [0x4c6a70]
mov dword [edi + 0x3e04], 0
mov dword [edi + 0x3e00], 0
test eax, eax
je 0x408524
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e08], 0
mov dword [edi + 0x3fcc], 0
mov dword [edi + 0x3e20], 0
mov dword [edi + 0x3e1c], 0
mov dword [edi + 0x3e80], 0
mov dword [edi + 0x3e6c], 0
mov dword [edi + 0x3e24], 0
mov ecx, dword [edi + 0x3f64]
test ecx, ecx
je 0x4085ad
mov eax, dword [0x4c6a70]
mov dword [edi + 0x3f60], 0
mov dword [edi + 0x3f5c], 0
test eax, eax
je 0x40859d
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3f64], 0
mov ecx, dword [edi + 0x3f70]
test ecx, ecx
je 0x4085ea
mov eax, dword [0x4c6a70]
mov dword [edi + 0x3f6c], 0
mov dword [edi + 0x3f68], 0
test eax, eax
je 0x4085da
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3f70], 0
mov ecx, dword [edi + 0x3f7c]
test ecx, ecx
je 0x408627
mov eax, dword [0x4c6a70]
mov dword [edi + 0x3f78], 0
mov dword [edi + 0x3f74], 0
test eax, eax
je 0x408617
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3f7c], 0
mov ecx, dword [edi + 0x3fac]
test ecx, ecx
je 0x408664
mov eax, dword [0x4c6a70]
mov dword [edi + 0x3fa8], 0
mov dword [edi + 0x3fa4], 0
test eax, eax
je 0x408654
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3fac], 0
mov ecx, dword [edi + 0x3fb8]
test ecx, ecx
je 0x4086a1
mov eax, dword [0x4c6a70]
mov dword [edi + 0x3fb4], 0
mov dword [edi + 0x3fb0], 0
test eax, eax
je 0x408691
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3fb8], 0
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [edi + 0x3fc0], edx
jle 0x408772
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
mov eax, dword [edi + 0x3fc8]
mov esi, dword [ecx + eax]
test esi, esi
je 0x40875c
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4086f9
mov ecx, eax
call fcn.004010b0
mov eax, dword [0x4c6a70]
test eax, eax
je 0x4086f1
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 0x408721
mov ecx, eax
call fcn.004010b0
mov eax, dword [0x4c6a70]
test eax, eax
je 0x408719
dec dword [eax + 0xb0]
push dword [ebp - 0x1c]
call ebx
add esp, 4
push 0x4194f0
push 2
push 0xc
lea eax, [esi + 0x64]
mov dword [ebp - 4], 0
push eax
call fcn.00432ad6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4c6a70]
test eax, eax
je 0x408750
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 + 0x3fc0]
jl 0x4086c0
mov ecx, dword [edi + 0x3fc8]
test ecx, ecx
je 0x4087af
mov eax, dword [0x4c6a70]
mov dword [edi + 0x3fc4], 0
mov dword [edi + 0x3fc0], 0
test eax, eax
je 0x40879f
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3fc8], 0
lea ecx, [edi + 0x423c]
call fcn.00418f30
mov ecx, dword [edi + 0x4264]
test ecx, ecx
je 0x4087f7
mov eax, dword [0x4c6a70]
mov dword [edi + 0x4260], 0
mov dword [edi + 0x425c], 0
test eax, eax
je 0x4087e7
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4264], 0
mov ecx, dword [edi + 0x4270]
test ecx, ecx
je 0x408834
mov eax, dword [0x4c6a70]
mov dword [edi + 0x426c], 0
mov dword [edi + 0x4268], 0
test eax, eax
je 0x408824
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4270], 0
xor esi, esi
cmp dword [edi + 0x41e0], esi
jle 0x408878
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [edi + 0x41e8]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x408869
mov eax, dword [0x4c6a70]
test eax, eax
je 0x408860
dec dword [eax + 0xb0]
push edx
call ebx
mov ecx, dword [ebp - 0x14]
add esp, 4
inc esi
add ecx, 0x1c
mov dword [ebp - 0x14], ecx
cmp esi, dword [edi + 0x41e0]
jl 0x408843
mov ecx, dword [edi + 0x41e8]
test ecx, ecx
je 0x4088b5
mov eax, dword [0x4c6a70]
mov dword [edi + 0x41e4], 0
mov dword [edi + 0x41e0], 0
test eax, eax
je 0x4088a5
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x41e8], 0
lea ecx, [edi + 0x4200]
call fcn.00419080
cmp dword [edi + 0x41f4], 0
mov dword [ebp - 0x14], 0
jle 0x408919
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, dword [edi + 0x41fc]
add esi, ecx
lea ecx, [esi + 0x10]
call fcn.00423ef0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x408901
mov eax, dword [0x4c6a70]
test eax, eax
je 0x4088fb
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
inc eax
add ecx, 0x68
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, dword [edi + 0x41f4]
jl 0x4088d5
mov ecx, dword [edi + 0x41fc]
test ecx, ecx
je 0x408956
mov eax, dword [0x4c6a70]
mov dword [edi + 0x41f8], 0
mov dword [edi + 0x41f4], 0
test eax, eax
je 0x408946
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x41fc], 0
mov ecx, dword [edi + 0x4234]
test ecx, ecx
je 0x408993
mov eax, dword [0x4c6a70]
mov dword [edi + 0x4230], 0
mov dword [edi + 0x422c], 0
test eax, eax
je 0x408983
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4234], 0
mov ecx, dword [edi + 0x51d4]
test ecx, ecx
je 0x4089d0
mov eax, dword [0x4c6a70]
mov dword [edi + 0x51d0], 0
mov dword [edi + 0x51cc], 0
test eax, eax
je 0x4089c0
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x51d4], 0
mov ecx, dword [edi + 0x51e0]
test ecx, ecx
je 0x408a0d
mov eax, dword [0x4c6a70]
mov dword [edi + 0x51dc], 0
mov dword [edi + 0x51d8], 0
test eax, eax
je 0x4089fd
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x51e0], 0
mov ecx, dword [edi + 0x42a0]
test ecx, ecx
je 0x408a4a
mov eax, dword [0x4c6a70]
mov dword [edi + 0x429c], 0
mov dword [edi + 0x4298], 0
test eax, eax
je 0x408a3a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x42a0], 0
mov ecx, dword [edi + 0x42ac]
test ecx, ecx
je 0x408a87
mov eax, dword [0x4c6a70]
mov dword [edi + 0x42a8], 0
mov dword [edi + 0x42a4], 0
test eax, eax
je 0x408a77
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x42ac], 0
mov ecx, dword [edi + 0x42b8]
test ecx, ecx
je 0x408ac4
mov eax, dword [0x4c6a70]
mov dword [edi + 0x42b4], 0
mov dword [edi + 0x42b0], 0
test eax, eax
je 0x408ab4
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x42b8], 0
mov ecx, dword [edi + 0x522c]
test ecx, ecx
je 0x408b01
mov eax, dword [0x4c6a70]
mov dword [edi + 0x5228], 0
mov dword [edi + 0x5224], 0
test eax, eax
je 0x408af1
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x522c], 0
mov ecx, dword [edi + 0x5220]
test ecx, ecx
je 0x408b3e
mov eax, dword [0x4c6a70]
mov dword [edi + 0x521c], 0
mov dword [edi + 0x5218], 0
test eax, eax
je 0x408b2e
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5220], 0
cmp dword [edi + 0x5254], 0
je 0x408b70
mov esi, dword [edi + 0x5254]
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 0x408b66
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x5254], 0
mov ecx, dword [edi + 0x5260]
test ecx, ecx
je 0x408bad
mov eax, dword [0x4c6a70]
mov dword [edi + 0x525c], 0
mov dword [edi + 0x5258], 0
test eax, eax
je 0x408b9d
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5260], 0
mov ecx, dword [edi + 0x528c]
test ecx, ecx
je 0x408bea
mov eax, dword [0x4c6a70]
mov dword [edi + 0x5288], 0
mov dword [edi + 0x5284], 0
test eax, eax
je 0x408bda
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x528c], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret