Function at 0x10037d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1004c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x54], 0xffffffff
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp + 8]
jne 0x10037dbe
mov dword [ebp - 0x48], 1
jmp 0x10037dc5
mov dword [ebp - 0x48], 0
mov cl, byte [ebp - 0x48]
mov byte [ebp - 0x31], cl
movzx edx, byte [ebp - 0x31]
test edx, edx
je 0x10037e21
mov dword [ebp - 0x58], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x58]
je 0x10037dea
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
jmp 0x10037e13
mov dword [ebp - 0x8c], 0xffffffff
cmp dword [ebp - 0x8c], 0
jne 0x10037e06
mov dword [ebp - 0x4c], 1
jmp 0x10037e0d
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
jmp 0x1003800a
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x10037e9f
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
add eax, dword [edx]
cmp dword [ebp - 0x64], eax
jae 0x10037e9f
mov cl, byte [ebp - 0x32]
mov byte [ebp - 0x2e], cl
mov dl, byte [ebp + 8]
mov byte [ebp - 0x2e], dl
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx]
sub edx, 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x30]
mov dword [ecx], edx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x68]
mov dl, byte [ebp - 0x2e]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
jmp 0x1003800a
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x4c], 0
jne 0x10037eb7
mov dword [ebp - 0x6c], 0xffffffff
mov eax, dword [ebp - 0x6c]
jmp 0x1003800a
mov ecx, dword [ebp - 0x2c]
call fcn.10038ff0
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x38], 0
jne 0x10037f0f
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x70], eax
mov cl, byte [ebp - 0x33]
mov byte [ebp - 0x2d], cl
mov dl, byte [ebp + 8]
mov byte [ebp - 0x2d], dl
mov edx, dword [ebp - 0x70]
mov cl, byte [ebp - 0x2d]
call fcn.1002c950
movzx eax, al
test eax, eax
je 0x10037ef7
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
jmp 0x10037f07
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x38], 0xffffffff
mov eax, dword [ebp - 0x38]
jmp 0x1003800a
mov dword [ebp - 0x94], 0x20
mov al, byte [ebp + 8]
mov byte [ebp - 0x30], al
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x74], edx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x2f]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x2c]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x74]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x10037f6a
cmp dword [ebp - 0x3c], 1
je 0x10037f6a
cmp dword [ebp - 0x3c], 3
je 0x10037fc8
jmp 0x10037ffa
mov ecx, dword [ebp - 0x78]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x40], ecx
je 0x10037fa2
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x10037fa2
mov dword [ebp - 0x7c], 0xffffffff
mov eax, dword [ebp - 0x7c]
jmp 0x1003800a
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x30]
cmp dword [ebp - 0x80], edx
je 0x10037fb6
mov eax, dword [ebp + 8]
jmp 0x1003800a
mov dword [ebp - 0x84], 0xffffffff
mov eax, dword [ebp - 0x84]
jmp 0x1003800a
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x4c]
mov cl, byte [ebp - 0x30]
call fcn.1002c950
movzx ecx, al
test ecx, ecx
je 0x10037fe5
mov edx, dword [ebp + 8]
mov dword [ebp - 0x44], edx
jmp 0x10037ff5
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x44], 0xffffffff
mov eax, dword [ebp - 0x44]
jmp 0x1003800a
mov dword [ebp - 0x88], 0xffffffff
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003d6f0
mov esp, ebp
pop ebp
ret 4