Function at 0x1004a160
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 0x100fa0cc
lea ecx, [ebp - 0x434]
call fcn.1000f720
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
je 0x1004a1f7
cmp dword [ebp - 0x450], 1
je 0x1004a1d3
cmp dword [ebp - 0x450], 2
je 0x1004a1e5
jmp 0x1004a207
push 0x100fa0d0
lea ecx, [ebp - 0x434]
call fcn.1000f720
jmp 0x1004a207
push 0x100fa0d8
lea ecx, [ebp - 0x434]
call fcn.1000f720
jmp 0x1004a207
push str.ftp:__
lea ecx, [ebp - 0x434]
call fcn.1000f720
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x434]
call fcn.1000f720
push 0x100fa0ec
lea ecx, [ebp - 0x434]
call fcn.1000f720
mov dx, word [0x100fa0f0]
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 0x100fa0f4
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
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x434]
call fcn.1000f720
push 0x100fa0f8
lea ecx, [ebp - 0x434]
call fcn.1000f720
mov edx, dword [ebp + 0x18]
push edx
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 0x1004a2c2
mov dword [ebp - 0x464], 0
jmp 0x1004a37a
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x44c]
add ecx, 1
mov dword [ebp - 0x478], ecx
mov edx, dword [ebp - 0x44c]
mov al, byte [edx]
mov byte [ebp - 0x439], al
add dword [ebp - 0x44c], 1
cmp byte [ebp - 0x439], 0
jne 0x1004a2dd
mov ecx, dword [ebp - 0x44c]
sub ecx, dword [ebp - 0x478]
mov dword [ebp - 0x47c], ecx
mov edx, dword [ebp - 0x47c]
add edx, 1
mov dword [ebp - 0x440], edx
cmp dword [ebp - 0x440], 0x3fffffff
jle 0x1004a334
mov dword [ebp - 0x460], 0
jmp 0x1004a36e
mov eax, dword [ebp - 0x440]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x484], esp
mov eax, dword [ebp - 0x46c]
push eax
mov ecx, dword [ebp - 0x440]
push ecx
mov edx, dword [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x484]
push eax
call fcn.100492f0
mov dword [ebp - 0x460], eax
mov ecx, dword [ebp - 0x460]
mov dword [ebp - 0x464], ecx
mov edx, dword [ebp - 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x454], eax
push 0
push 0
lea eax, [ebp - 0x468]
push eax
push 0x400
mov ecx, dword [ebp - 0x454]
push ecx
push 0x100fa0fc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov dword [ebp - 0x488], eax
mov dx, word [0x100fa114]
mov word [ebp - 0x41c], dx
push 0x3fe
push 0
lea eax, [ebp - 0x41a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x468]
push ecx
mov edx, dword [ebp - 0x454]
push edx
mov eax, dword [ebp - 0x454]
push eax
push str.__d__0x_08x___s
push 0x400
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.MSVCR120.dll_sprintf_s]
add esp, 0x18
lea edx, [ebp - 0x41c]
mov dword [ebp - 0x438], edx
cmp dword [ebp - 0x438], 0
jne 0x1004a43e
mov dword [ebp - 0x45c], 0
jmp 0x1004a4f6
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x448]
add ecx, 1
mov dword [ebp - 0x470], ecx
mov edx, dword [ebp - 0x448]
mov al, byte [edx]
mov byte [ebp - 0x441], al
add dword [ebp - 0x448], 1
cmp byte [ebp - 0x441], 0
jne 0x1004a459
mov ecx, dword [ebp - 0x448]
sub ecx, dword [ebp - 0x470]
mov dword [ebp - 0x474], ecx
mov edx, dword [ebp - 0x474]
add edx, 1
mov dword [ebp - 0x440], edx
cmp dword [ebp - 0x440], 0x3fffffff
jle 0x1004a4b0
mov dword [ebp - 0x458], 0
jmp 0x1004a4ea
mov eax, dword [ebp - 0x440]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x480], esp
mov eax, dword [ebp - 0x46c]
push eax
mov ecx, dword [ebp - 0x440]
push ecx
mov edx, dword [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x480]
push eax
call fcn.100492f0
mov dword [ebp - 0x458], eax
mov ecx, dword [ebp - 0x458]
mov dword [ebp - 0x45c], ecx
mov edx, dword [ebp - 0x45c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x468]
push eax
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