Function at 0x4073dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff1c
mov eax, 0x4317bc
push ebx
push esi
push edi
lea ebx, [ebp - 0x28]
mov esi, dword [ebp + 8]
call fcn.0040dbb0
cmp dword [esi + 0x40], 0
je 0x407404
cmp byte [esi + 0x45], 0
jne 0x407415
mov al, 1
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
jmp 0x407957
mov dword [ebp - 0x50], 8
call sub.CC32140MT.DLL__std__char_traits_c__eof_qv
push eax
push esi
mov ecx, dword [esi]
call dword [ecx + 0xc]
add esp, 8
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x5c]
push ecx
call sub.CC32140MT.DLL__std__char_traits_c__eof_qv
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
push eax
call sub.CC32140MT.DLL__std__char_traits_c__eq_int_type_qrxit1
add esp, 8
test al, al
je 0x40745b
xor eax, eax
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
jmp 0x407957
mov word [ebp - 0x3c], 0xc
lea ecx, [ebp - 0x64]
push ecx
call fcn.0040820c
pop ecx
lea ecx, [ebp - 0x64]
push ecx
lea eax, [ebx + 8]
push eax
call fcn.00403c54
mov eax, 0xf
add esp, 8
mov dword [ebx + 0x24], eax
lea edx, [ebp - 0x65]
mov byte [ebp - 0x65], 0
push edx
cmp eax, 0x10
jb 0x407495
mov ecx, dword [ebx + 0x10]
jmp 0x407498
lea ecx, [ebx + 0x10]
xor eax, eax
mov dword [ebx + 0x20], eax
add ecx, eax
push ecx
call sub.CC32140MT.DLL__std__char_traits_c__assign_qrcrxc
add esp, 8
lea edx, [ebx + 8]
push edx
call fcn.00403e9c
pop ecx
mov edi, eax
cmp edi, 1
ja 0x4074c0
mov ecx, 1
jmp 0x4074c3
mov ecx, edi
dec ecx
cmp ecx, 8
jae 0x4074cf
push ebx
call sub.CC32140MT.DLL__std__String_base__Xlen_xqv
pop ecx
cmp dword [ebx + 0x24], 8
jae 0x4074e4
mov eax, dword [ebx + 0x20]
push eax
push 8
push ebx
call fcn.00403c7c
add esp, 0xc
mov dl, 1
test dl, dl
je 0x407534
mov byte [ebp - 0x66], 0
mov cl, byte [ebp - 0x66]
push ecx
push 8
cmp dword [ebx + 0x24], 0x10
jb 0x4074ff
mov eax, dword [ebx + 0x10]
jmp 0x407502
lea eax, [ebx + 0x10]
push eax
call sub.CC32140MT.DLL__std__char_traits_c__assign_qpcuic
add esp, 0xc
lea edx, [ebp - 0x67]
mov byte [ebp - 0x67], 0
push edx
cmp dword [ebx + 0x24], 0x10
jb 0x40751e
mov ecx, dword [ebx + 0x10]
jmp 0x407521
lea ecx, [ebx + 0x10]
mov eax, 8
mov dword [ebx + 0x20], eax
add ecx, eax
push ecx
call sub.CC32140MT.DLL__std__char_traits_c__assign_qrcrxc
add esp, 8
inc dword [ebp - 0x30]
mov word [ebp - 0x3c], 0x18
cmp dword [ebx + 0x24], 0x10
jb 0x407548
mov edi, dword [ebx + 0x10]
jmp 0x40754b
lea edi, [ebx + 0x10]
mov dword [ebp - 0xac], edi
mov eax, dword [ebp - 0xac]
add eax, dword [ebx + 0x20]
mov dword [ebp - 0x6c], eax
cmp dword [ebx + 0x24], 0x10
jb 0x407568
mov edx, dword [ebx + 0x10]
jmp 0x40756b
lea edx, [ebx + 0x10]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0x74], ecx
lea ecx, [esi + 0x48]
mov dword [ebp - 0x78], ecx
push eax
mov edx, dword [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x74]
push ecx
mov eax, dword [ebp - 0x78]
push eax
mov edx, dword [esi + 0x40]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x18]
add esp, 0x14
sub eax, 1
jb 0x4075b7
je 0x4075bb
sub eax, 2
je 0x40789a
jmp 0x4078f3
mov byte [esi + 0x45], 0
cmp dword [ebx + 0x24], 0x10
jb 0x4075c6
mov eax, dword [ebx + 0x10]
jmp 0x4075c9
lea eax, [ebx + 0x10]
mov edx, eax
mov dword [ebp - 0xcc], edx
mov edi, dword [ebp - 0x54]
sub edi, edx
mov word [ebp - 0x3c], 0x18
test edi, edi
jbe 0x40766e
mov eax, dword [esi + 0x50]
push eax
push edi
push 1
cmp dword [ebx + 0x24], 0x10
jb 0x4075f6
mov edx, dword [ebx + 0x10]
jmp 0x4075f9
lea edx, [ebx + 0x10]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
push ecx
call sub.CC32140MT.DLL__fwrite
add esp, 0x10
cmp edi, eax
je 0x40766e
xor eax, eax
push eax
dec dword [ebp - 0x30]
cmp dword [ebx + 0x24], 0x10
jb 0x407630
mov esi, dword [ebx + 0x10]
mov edi, esi
push edi
call sub.CC32140MT.DLL___bdele_qpv
pop ecx
mov edx, 0xf
lea ecx, [ebp - 0x7d]
mov dword [ebx + 0x24], edx
mov byte [ebp - 0x7d], 0
push ecx
cmp dword [ebx + 0x24], 0x10
jb 0x40764b
mov ecx, dword [ebx + 0x10]
jmp 0x40764e
lea ecx, [ebx + 0x10]
xor eax, eax
mov dword [ebx + 0x20], eax
add ecx, eax
push ecx
call sub.CC32140MT.DLL__std__char_traits_c__assign_qrcrxc
add esp, 8
pop eax
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
jmp 0x407957
cmp byte [esi + 0x45], 0
jne 0x4076ca
mov al, 1
push eax
dec dword [ebp - 0x30]
cmp dword [ebx + 0x24], 0x10
jb 0x40768c
mov esi, dword [ebx + 0x10]
mov edi, esi
push edi
call sub.CC32140MT.DLL___bdele_qpv
pop ecx
mov edx, 0xf
lea ecx, [ebp - 0x7e]
mov dword [ebx + 0x24], edx
mov byte [ebp - 0x7e], 0
push ecx
cmp dword [ebx + 0x24], 0x10
jb 0x4076a7
mov ecx, dword [ebx + 0x10]
jmp 0x4076aa
lea ecx, [ebx + 0x10]
xor eax, eax
mov dword [ebx + 0x20], eax
add ecx, eax
push ecx
call sub.CC32140MT.DLL__std__char_traits_c__assign_qrcrxc
add esp, 8
pop eax
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
jmp 0x407957
test edi, edi
jne 0x40753d
or ecx, 0xffffffff
sub ecx, dword [ebx + 0x20]
cmp ecx, 8
ja 0x4076e4
push ebx
call sub.CC32140MT.DLL__std__String_base__Xlen_xqv
pop ecx
mov ecx, dword [ebx + 0x20]
lea eax, [ebx + 8]
add ecx, 8
mov dword [ebp - 0x84], ecx
push eax
mov edi, ecx
call fcn.00403e9c
pop ecx
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 1
ja 0x407712
mov edx, 1
jmp 0x407719
mov edx, dword [ebp - 0x88]
dec edx
cmp edi, edx
jbe 0x407724
push ebx
call sub.CC32140MT.DLL__std__String_base__Xlen_xqv
pop ecx
cmp edi, dword [ebx + 0x24]
jbe 0x4077e3
mov eax, dword [ebx + 0x20]
push eax
push edi
push ebx
call fcn.00403c7c
add esp, 0xc
jmp 0x407813
test edi, edi
jne 0x407813
mov byte [ebp - 0x96], 0
lea edx, [ebp - 0x96]
push edx
cmp dword [ebx + 0x24], 0x10
jb 0x407800
mov ecx, dword [ebx + 0x10]
jmp 0x407803
lea ecx, [ebx + 0x10]
xor eax, eax
mov dword [ebx + 0x20], eax
add ecx, eax
push ecx
call sub.CC32140MT.DLL__std__char_traits_c__assign_qrcrxc
add esp, 8
test edi, edi
seta dl
and edx, 1
test dl, dl
je 0x40753d
mov byte [ebp - 0x97], 0
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0x9c], ecx
mov cl, byte [ebp - 0x97]
push ecx
push 8
cmp dword [ebx + 0x24], 0x10
jb 0x407847
mov eax, dword [ebx + 0x10]
jmp 0x40784a
lea eax, [ebx + 0x10]
add eax, dword [ebp - 0x9c]
push eax
call sub.CC32140MT.DLL__std__char_traits_c__assign_qpcuic
mov edx, dword [ebp - 0x84]
add esp, 0xc
mov dword [ebp - 0xa0], edx
lea ecx, [ebp - 0xa1]
mov byte [ebp - 0xa1], 0
push ecx
cmp dword [ebx + 0x24], 0x10
jb 0x40787e
mov ecx, dword [ebx + 0x10]
jmp 0x407881
lea ecx, [ebx + 0x10]
mov eax, dword [ebp - 0xa0]
mov dword [ebx + 0x20], eax
add ecx, eax
push ecx
call sub.CC32140MT.DLL__std__char_traits_c__assign_qrcrxc
add esp, 8
jmp 0x40753d
mov al, 1
push eax
dec dword [ebp - 0x30]
cmp dword [ebx + 0x24], 0x10
jb 0x4078b2
mov esi, dword [ebx + 0x10]
mov edi, esi
push edi
call sub.CC32140MT.DLL___bdele_qpv
pop ecx
mov edx, 0xf
lea ecx, [ebp - 0xa2]
mov dword [ebx + 0x24], edx
mov byte [ebp - 0xa2], 0
push ecx
cmp dword [ebx + 0x24], 0x10
jb 0x4078d3
mov ecx, dword [ebx + 0x10]
jmp 0x4078d6
lea ecx, [ebx + 0x10]
xor eax, eax
mov dword [ebx + 0x20], eax
add ecx, eax
push ecx
call sub.CC32140MT.DLL__std__char_traits_c__assign_qrcrxc
add esp, 8
pop eax
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
jmp 0x407957
xor eax, eax
push eax
dec dword [ebp - 0x30]
cmp dword [ebx + 0x24], 0x10
jb 0x40790b
mov esi, dword [ebx + 0x10]
mov edi, esi
push edi
call sub.CC32140MT.DLL___bdele_qpv
pop ecx
mov edx, 0xf
lea ecx, [ebp - 0xa3]
mov dword [ebx + 0x24], edx
mov byte [ebp - 0xa3], 0
push ecx
cmp dword [ebx + 0x24], 0x10
jb 0x40792c
mov ecx, dword [ebx + 0x10]
jmp 0x40792f
lea ecx, [ebx + 0x10]
xor eax, eax
mov dword [ebx + 0x20], eax
add ecx, eax
push ecx
call sub.CC32140MT.DLL__std__char_traits_c__assign_qrcrxc
add esp, 8
pop eax
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
jmp 0x407957
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret