Function at 0x1037d03
Capabilities:
Write file on windows

Disassembly:
push 0x74
mov eax, 0x10426d1
call fcn.0103d8b2
mov esi, ecx
mov dword [ebp - 0x30], esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x38], eax
add esi, 0xe8
mov ecx, esi
call fcn.0102b6c3
mov ecx, eax
call fcn.01028e5e
mov dword [ebp - 0x28], eax
mov ecx, esi
call fcn.0102b6db
mov ecx, eax
call fcn.01017141
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4c], ebx
push 0x10026a2
lea ecx, [ebp - 0x3c]
call fcn.01007b2f
mov byte [ebp - 4], 1
push 0x1ffe
call fcn.0103d496
pop ecx
mov edi, eax
cmp edi, ebx
je 0x1037da1
push dword [sym.imp.msvcrt.dll__iob]
push 0xffe
push edi
call dword [sym.imp.msvcrt.dll_fgetws]
add esp, 0xc
cmp eax, ebx
jne 0x1037dde
push edi
call fcn.0103d416
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push 0x1005928
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x1037e5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
push 0x1045960
lea eax, [ebp - 0x6c]
push eax
call sub.msvcrt.dll__CxxThrowException
push 0x1005ab0
lea ecx, [ebp - 0x58]
call fcn.01007b2f
mov esi, eax
mov byte [ebp - 4], 2
push edi
lea ecx, [ebp - 0x54]
call fcn.01007b81
mov byte [ebp - 4], 3
push esi
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.01008683
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x3c]
call fcn.01008638
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x50]
cmp ecx, ebx
je 0x1037e2a
call fcn.0100830c
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54]
cmp ecx, ebx
je 0x1037e3d
call fcn.0100830c
mov dword [ebp - 0x54], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x58]
cmp ecx, ebx
je 0x1037e50
call fcn.0100830c
mov dword [ebp - 0x58], ebx
push edi
call fcn.0103d416
pop ecx
jmp 0x1037d70
lea eax, [ebp - 0x1c]
push eax
push 0x1006d20
push 1
push ebx
push 0x1006d40
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp dword [ebp - 0x28], ebx
jne 0x1037e7f
cmp dword [ebp - 0x34], ebx
je 0x1037ee1
lea ecx, [ebp - 0x44]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 5
push 0x1004a88
lea eax, [ebp - 0x44]
push eax
call sub.framedynos.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__
pop ecx
pop ecx
push ebx
push ebx
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
add eax, 0xe8
push eax
push dword [ebp - 0x38]
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
push dword [ebp - 0x44]
call fcn.01007b81
mov byte [ebp - 4], 6
mov esi, 0x10059e8
push esi
push 0x597
push edi
mov byte [ebp - 4], 5
call fcn.01035424
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
jmp 0x1037ee6
mov esi, 0x10059e8
cmp edi, ebx
jge 0x1037ef0
push edi
call fcn.0103d288
mov dword [ebp - 0x5c], ebx
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x1037efe
mov ecx, dword [eax]
jmp 0x1037f00
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
lea edi, [ebp - 0x5c]
push edi
push ecx
push eax
call dword [edx + 0x104]
cmp eax, ebx
jl 0x103827e
cmp word [ebp - 0x5c], bx
je 0x103827e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0xb4]
mov edi, eax
cmp dword [ebp - 0x28], ebx
jne 0x1037f3f
cmp dword [ebp - 0x34], ebx
je 0x1037f74
push ebx
push ebx
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
add eax, 0xe8
push eax
push dword [ebp - 0x38]
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
push 0x10048b8
call fcn.01007b81
mov byte [ebp - 4], 7
push esi
push 0x5af
push edi
mov byte [ebp - 4], 1
call fcn.01035424
cmp edi, ebx
jge 0x1037f7e
push edi
call fcn.0103d288
cmp dword [ebp - 0x20], ebx
je 0x1038211
push 0x1005a98
lea ecx, [ebp - 0x60]
call fcn.01007b81
mov byte [ebp - 4], 8
cmp dword [eax], ebx
je 0x1037fa2
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1037fa4
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
lea edi, [ebp - 0x24]
push edi
push ecx
push eax
call dword [edx + 0xc8]
mov edi, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
cmp ecx, ebx
je 0x1037fca
call fcn.0100830c
mov dword [ebp - 0x60], ebx
cmp dword [ebp - 0x28], ebx
jne 0x1037fd4
cmp dword [ebp - 0x34], ebx
je 0x1038009
push ebx
push ebx
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
add eax, 0xe8
push eax
push dword [ebp - 0x38]
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
push 0x1005a28
call fcn.01007b81
mov byte [ebp - 4], 9
push esi
push 0x5bb
push edi
mov byte [ebp - 4], 1
call fcn.01035424
cmp edi, ebx
jge 0x1038013
push edi
call fcn.0103d288
mov dword [ebp - 0x64], ebx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x64]
push edx
push eax
call dword [ecx + 0x20]
mov edi, eax
cmp dword [ebp - 0x28], ebx
jne 0x103802f
cmp dword [ebp - 0x34], ebx
je 0x1038064
push ebx
push ebx
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
add eax, 0xe8
push eax
push dword [ebp - 0x38]
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
push 0x1004804
call fcn.01007b81
mov byte [ebp - 4], 0xa
push esi
push 0x5c5
push edi
mov byte [ebp - 4], 1
call fcn.01035424
cmp edi, ebx
jge 0x103806e
push edi
call fcn.0103d288
mov dword [ebp - 0x48], ebx
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x64]
mov eax, dword [ebp - 0x24]
jge 0x10381f4
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push dword [ebp - 0x48]
push eax
call dword [ecx + 0x1c]
mov edi, eax
cmp dword [ebp - 0x28], ebx
jne 0x1038099
cmp dword [ebp - 0x34], ebx
je 0x10380ce
push ebx
push ebx
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
add eax, 0xe8
push eax
push dword [ebp - 0x38]
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
push 0x10047c4
call fcn.01007b81
mov byte [ebp - 4], 0xb
push esi
push 0x5d0
push edi
mov byte [ebp - 4], 1
call fcn.01035424
cmp edi, ebx
jge 0x10380d8
push edi
call fcn.0103d288
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x10381ec
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x68]
mov edi, eax
cmp dword [ebp - 0x28], ebx
jne 0x10380f9
cmp dword [ebp - 0x34], ebx
je 0x103812e
push ebx
push ebx
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
add eax, 0xe8
push eax
push dword [ebp - 0x38]
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
push 0x1004790
call fcn.01007b81
mov byte [ebp - 4], 0xc
push esi
push 0x5de
push edi
mov byte [ebp - 4], 1
call fcn.01035424
cmp edi, ebx
jge 0x1038138
push edi
call fcn.0103d288
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call fcn.01007b81
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x44]
cmp ecx, ebx
je 0x1038157
call fcn.01016d06
mov edi, eax
jmp 0x1038159
xor edi, edi
push ebx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x44]
call fcn.01007be8
push eax
push edi
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
cmp eax, ebx
jne 0x103818d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
push 0x1045960
lea eax, [ebp - 0x70]
jmp 0x1037dd8
push ebx
lea eax, [ebp - 0x4c]
push eax
push 1
push 0x1005ab0
push dword [ebp - 0x18]
call edi
cmp eax, ebx
jne 0x10381b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
push 0x1045960
lea eax, [ebp - 0x74]
jmp 0x1037dd8
cmp dword [ebp - 0x14], ebx
je 0x10381c9
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x10381d9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
cmp ecx, ebx
je 0x10381ec
call fcn.0100830c
mov dword [ebp - 0x44], ebx
inc dword [ebp - 0x48]
jmp 0x1038071
cmp eax, ebx
je 0x1038201
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x1038211
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x1038221
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x1c], ebx
cmp dword [ebp + 8], ebx
je 0x103822f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x103823d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [sym.imp.msvcrt.dll__iob]
push 0x1005170
push 0x1005a18
call dword [sym.imp.msvcrt.dll__wfreopen]
add esp, 0xc
mov dword [ebp - 0x40], 1
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x3c]
cmp ecx, ebx
je 0x103826f
call fcn.0100830c
mov dword [ebp - 0x3c], ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
call fcn.0103d966
ret 4
mov ecx, dword [ebp - 0x3c]
cmp ecx, ebx
je 0x103828c
call fcn.01016d06
jmp 0x103828e
xor eax, eax
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x1038293
sub ecx, esi
push ebx
lea edx, [ebp - 0x4c]
push edx
push ecx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1038221
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x78], eax
push 0x1045960
lea eax, [ebp - 0x78]
jmp 0x1037dd8