Function at 0x10049d10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157c06
mov eax, dword fs:[0]
push eax
mov eax, 0x501c
call fcn.100b4660
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [0x101c659c]
mov esi, dword [ebp + 0xc]
and eax, ebx
mov edi, dword [ebp + 0x10]
cmp eax, ebx
jne 0x10049f5f
push 0x2800
lea eax, [ebp - 0x2810]
push 0
push eax
call fcn.100ec480
push 0x2814
lea eax, [ebp - 0x5024]
push 0
push eax
call fcn.100ec480
add esp, 0x18
lea eax, [ebp - 0x2810]
push edi
push 0
push esi
push 0x27fe
push eax
call fcn.100084a0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.10107e05
or edi, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, edi
test eax, eax
js 0x10049dbe
cmp eax, 0x27fe
ja 0x10049dbe
jne 0x10049dc2
mov byte [ebp - 0x12], 0
lea ecx, [ebp - 0x5024]
mov byte [ebp - 0x11], 0
lea esi, [ebp - 0x2810]
mov eax, ecx
mov edx, 0x2813
sub esi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7fffd7eb]
test eax, eax
je 0x10049df9
mov al, byte [esi + ecx]
test al, al
je 0x10049df9
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10049de0
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
mov eax, dword [0x101c0224]
mov byte [ebp - 0x2811], 0
test al, 1
je 0x10049f31
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x10049f7b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5028], eax
lea eax, [ebp - 0x5024]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x5028]
call fcn.1001aad0
test al, al
jne 0x10049ede
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x5024]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 3
call edi
lea esi, [eax - 1]
test esi, esi
jle 0x10049ed0
mov ecx, dword [ebp - 0x5028]
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x10049e9f
push esi
lea ecx, [ebp - 0x5028]
call fcn.1000ad50
mov ecx, dword [ebp - 0x5028]
push esi
push ecx
push 0xffffffffffffffff
lea eax, [ebp - 0x5024]
push eax
push 0
push 3
call edi
mov eax, dword [ebp - 0x5028]
cmp esi, dword [eax - 8]
jg 0x10049f85
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x5028]
mov word [eax + esi*2], cx
jmp 0x10049edb
lea ecx, [ebp - 0x5028]
call fcn.10033d90
or edi, 0xffffffff
lea eax, [ebp - 0x5028]
mov dword [ebp - 4], 1
push eax
push ebx
call fcn.10049910
add esp, 4
mov ecx, 0x101c65a4
push eax
call fcn.1005bca0
mov edx, dword [ebp - 0x5028]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10049f22
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0x101c65a4
call fcn.1005c010
mov eax, dword [0x101c0224]
test al, 2
je 0x10049f47
lea eax, [ebp - 0x2810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x101c0224]
test al, 4
je 0x10049f5f
lea eax, [ebp - 0x2810]
push eax
push str._s_r_n
call fcn.1000a240
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10007270
push 0x80070057
call fcn.10007270
int3