Function at 0x10049d80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f253b
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x1011b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x434]
call fcn.10009fb0
mov dword [ebp - 4], 0
push 0x100fa070
lea ecx, [ebp - 0x434]
call fcn.1000f720
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
je 0x10049e17
cmp dword [ebp - 0x450], 1
je 0x10049df3
cmp dword [ebp - 0x450], 2
je 0x10049e05
jmp 0x10049e27
push 0x100fa074
lea ecx, [ebp - 0x434]
call fcn.1000f720
jmp 0x10049e27
push 0x100fa07c
lea ecx, [ebp - 0x434]
call fcn.1000f720
jmp 0x10049e27
push 0x100fa088
lea ecx, [ebp - 0x434]
call fcn.1000f720
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x434]
call fcn.1000f720
push 0x100fa090
lea ecx, [ebp - 0x434]
call fcn.1000f720
mov dx, word [0x100fa094]
mov word [ebp - 0x1c], dx
xor eax, eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x100fa098
push 0xa
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.MSVCR120.dll_sprintf_s]
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x434]
call fcn.1000f720
push 0x100fa09c
lea ecx, [ebp - 0x434]
call fcn.1000f720
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x434]
call fcn.1000f720
call fcn.1002cc50
mov dword [ebp - 0x46c], eax
lea ecx, [ebp - 0x434]
call fcn.1000d8c0
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jne 0x10049ed3
mov dword [ebp - 0x464], 0
jmp 0x10049f8b
mov edx, dword [ebp - 0x438]
mov dword [ebp - 0x44c], edx
mov eax, dword [ebp - 0x44c]
add eax, 1
mov dword [ebp - 0x478], eax
mov ecx, dword [ebp - 0x44c]
mov dl, byte [ecx]
mov byte [ebp - 0x439], dl
add dword [ebp - 0x44c], 1
cmp byte [ebp - 0x439], 0
jne 0x10049eee
mov eax, dword [ebp - 0x44c]
sub eax, dword [ebp - 0x478]
mov dword [ebp - 0x47c], eax
mov ecx, dword [ebp - 0x47c]
add ecx, 1
mov dword [ebp - 0x440], ecx
cmp dword [ebp - 0x440], 0x3fffffff
jle 0x10049f45
mov dword [ebp - 0x460], 0
jmp 0x10049f7f
mov eax, dword [ebp - 0x440]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x484], esp
mov edx, dword [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x438]
push ecx
mov edx, dword [ebp - 0x484]
push edx
call fcn.100492f0
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x460]
mov dword [ebp - 0x464], eax
mov ecx, dword [ebp - 0x464]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x454], eax
push 0
push 0
lea edx, [ebp - 0x468]
push edx
push 0x400
mov eax, dword [ebp - 0x454]
push eax
push 0x100fa0a0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov dword [ebp - 0x488], eax
mov cx, word [0x100fa0b8]
mov word [ebp - 0x41c], cx
push 0x3fe
push 0
lea edx, [ebp - 0x41a]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x468]
push eax
mov ecx, dword [ebp - 0x454]
push ecx
mov edx, dword [ebp - 0x454]
push edx
push 0x100fa0bc
push 0x400
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.MSVCR120.dll_sprintf_s]
add esp, 0x18
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x438], ecx
cmp dword [ebp - 0x438], 0
jne 0x1004a04f
mov dword [ebp - 0x45c], 0
jmp 0x1004a107
mov edx, dword [ebp - 0x438]
mov dword [ebp - 0x448], edx
mov eax, dword [ebp - 0x448]
add eax, 1
mov dword [ebp - 0x470], eax
mov ecx, dword [ebp - 0x448]
mov dl, byte [ecx]
mov byte [ebp - 0x441], dl
add dword [ebp - 0x448], 1
cmp byte [ebp - 0x441], 0
jne 0x1004a06a
mov eax, dword [ebp - 0x448]
sub eax, dword [ebp - 0x470]
mov dword [ebp - 0x474], eax
mov ecx, dword [ebp - 0x474]
add ecx, 1
mov dword [ebp - 0x440], ecx
cmp dword [ebp - 0x440], 0x3fffffff
jle 0x1004a0c1
mov dword [ebp - 0x458], 0
jmp 0x1004a0fb
mov eax, dword [ebp - 0x440]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x480], esp
mov edx, dword [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x438]
push ecx
mov edx, dword [ebp - 0x480]
push edx
call fcn.100492f0
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x45c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x468]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x434]
call fcn.1000a070
lea esp, [ebp - 0x48c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ec36e
mov esp, ebp
pop ebp
ret