Function at 0x4877a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x629066
mov eax, dword fs:[0]
push eax
mov eax, 0x501c
call fcn.0054d1b0
mov eax, dword [0x6d1554]
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 [0x6d1068]
mov esi, dword [ebp + 0xc]
and eax, ebx
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x5028], ebx
cmp eax, ebx
jne 0x487a69
push 0x2800
lea eax, [ebp - 0x2810]
push 0
push eax
call fcn.005c7920
push 0x2814
lea eax, [ebp - 0x5024]
push 0
push eax
call fcn.005c7920
add esp, 0x18
lea eax, [ebp - 0x2810]
push edi
push 0
push esi
push 0x27fe
push eax
call fcn.0040f6b0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005e69bb
mov ecx, eax
or edi, 0xffffffff
add esp, 0x1c
test ecx, ecx
cmovs ecx, edi
test ecx, ecx
js 0x487a69
cmp ecx, 0x27fe
ja 0x487a69
movzx eax, byte [ebp - 0x12]
xor edx, edx
cmp ecx, 0x27fe
mov esi, 0x65592a
lea ecx, [ebp - 0x5024]
cmove eax, edx
mov edx, 0x2814
mov byte [ebp - 0x12], al
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7fffd7ea]
test eax, eax
je 0x48789c
mov al, byte [esi + ecx]
test al, al
je 0x48789c
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x487883
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x2814
mov byte [eax], 0
lea eax, [ebp - 0x5024]
cmp byte [eax], 0
je 0x4878bd
inc eax
sub ecx, 1
jne 0x4878b2
mov edx, 0x2814
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x487915
lea ecx, [ebp - 0x5024]
lea ecx, [ecx + esi]
sub edx, esi
je 0x48790a
lea esi, [ebp - 0x2810]
mov eax, SysReAllocString
sub esi, ecx
nop dword [eax]
test eax, eax
je 0x487904
mov bl, byte [esi + ecx]
test bl, bl
je 0x487904
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x4878f0
mov ebx, dword [ebp - 0x5028]
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
mov eax, dword [0x6d106c]
test al, 1
je 0x487a3b
call fcn.0047fb20
mov ecx, eax
test ecx, ecx
je 0x487a85
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.0047d4d0
test al, al
jne 0x4879e8
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 0x4879da
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 0x4879a9
push esi
lea ecx, [ebp - 0x5028]
call fcn.00481860
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 0x487a8f
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x5028]
mov word [eax + esi*2], cx
jmp 0x4879e5
lea ecx, [ebp - 0x5028]
call fcn.0047e7b0
or edi, 0xffffffff
lea eax, [ebp - 0x5028]
mov dword [ebp - 4], 1
push eax
push ebx
call fcn.004872a0
add esp, 4
mov ecx, 0x6d7d50
push eax
call fcn.0048bbd0
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 0x487a2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0x6d7d50
call fcn.0048c0d0
mov eax, dword [0x6d106c]
test al, 2
je 0x487a51
lea eax, [ebp - 0x2810]
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, dword [0x6d106c]
test al, 4
je 0x487a69
lea eax, [ebp - 0x2810]
push eax
push str._s_r_n
call fcn.00487eb0
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.0054d193
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0047d4b0
push 0x80070057
call fcn.0047d4b0
int3