Function at 0x47b79c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push dword [ebp + 8]
mov ebx, ecx
inc dword [ebx + 0x19c]
call fcn.0047ac04
test al, al
je 0x47b7c4
inc dword [ebx + 0x1a0]
jmp 0x47bb3a
xor eax, eax
mov dword [ebp - 0xc], eax
cmp byte [ebx + 0x198], al
je 0x47b7dd
mov byte [ebp - 1], 1
cmp byte [ebx + 0x18f], al
jne 0x47b7e0
mov byte [ebp - 1], al
push esi
push edi
push ecx
lea esi, [ebx + 0x1b8]
mov byte [ebx + 0x198], al
mov edi, 0x10400
mov ecx, esi
push edi
call fcn.0047075c
test al, al
je 0x47b89c
lea eax, [ebp - 2]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 8]
mov ecx, ebx
push eax
push dword [esi]
push dword [ebp + 8]
call fcn.0047b077
mov ecx, eax
test ecx, ecx
je 0x47b84b
mov eax, dword [ebx + 0x1ac]
test eax, eax
jne 0x47b83f
push ecx
push 0x466508
call dword [sym.imp.msvcrt.dll_wprintf]
mov eax, dword [ebx + 0x1ac]
pop ecx
pop ecx
inc eax
mov dword [ebx + 0x1ac], eax
jmp 0x47bb38
cmp byte [ebp - 2], 0
je 0x47b85c
inc dword [ebx + 0x1a4]
jmp 0x47bb38
cmp byte [ebx + 0x18f], 0
jne 0x47b86d
mov edi, dword [ebp - 8]
jmp 0x47ba48
movzx esi, byte [ebp - 1]
lea eax, [ebx + 0x1c8]
neg esi
mov dword [ebp - 0x10], eax
push ecx
sbb esi, esi
mov ecx, eax
and esi, 0x89
xor edi, edi
add esi, 0x10000
push esi
mov dword [ebp - 8], esi
call fcn.0047075c
test al, al
jne 0x47b8c4
mov eax, dword [ebx + 0x1a8]
test eax, eax
jne 0x47b8b8
push 0x4664b8
call dword [sym.imp.msvcrt.dll_wprintf]
mov eax, dword [ebx + 0x1a8]
pop ecx
inc eax
mov dword [ebx + 0x1a8], eax
jmp 0x47bb38
cmp byte [ebp - 1], 0
je 0x47b8e4
mov edi, dword [ebx + 0x1c8]
mov esi, 0x466730
push 0x44
pop ecx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 8]
mov edi, 0x89
mov ecx, dword [ebx + 0x1c8]
mov eax, esi
mov edx, dword [ebx + 0x1b8]
sub eax, edi
push 0
push eax
lea eax, [ecx + edi*2]
mov dword [ebp - 8], edx
mov edx, dword [edx + 0x14]
mov ecx, dword [ebp - 8]
push eax
call fcn.0047b645
mov edx, dword [ebx + 0x1c8]
add edi, eax
mov ecx, dword [ebx + 0x1b8]
mov eax, esi
sub eax, edi
push 0
push eax
lea eax, [edx + edi*2]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x18]
call fcn.0047b645
mov ecx, dword [ebx + 0x1c8]
add edi, eax
mov eax, dword [ebp - 8]
push dword [eax + 0x44]
push dword [eax + 0x40]
push dword [eax + 0x38]
push dword [eax + 0x3c]
push dword [eax + 0x1c]
mov eax, esi
push 0x466588
sub eax, edi
push 0xffffffffffffffff
push eax
lea eax, [ecx + edi*2]
push eax
call dword [sym.imp.msvcrt.dll__snwprintf_s]
add esp, 0x24
test eax, eax
jns 0x47b96c
lea edi, [esi - 1]
jmp 0x47ba44
mov edx, dword [ebx + 0x1c8]
add edi, eax
mov ecx, dword [ebx + 0x1b8]
mov eax, esi
sub eax, edi
push 0
push eax
lea eax, [edx + edi*2]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x54]
call fcn.0047b645
mov edx, dword [ebx + 0x1c8]
add edi, eax
mov ecx, dword [ebx + 0x1b8]
mov eax, esi
sub eax, edi
push 0
push eax
lea eax, [edx + edi*2]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x58]
call fcn.0047b645
mov edx, dword [ebx + 0x1c8]
add edi, eax
mov ecx, dword [ebx + 0x1b8]
mov eax, esi
sub eax, edi
push 0
push eax
lea eax, [edx + edi*2]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x50]
call fcn.0047b645
mov edx, dword [ebx + 0x1c8]
add edi, eax
mov ecx, dword [ebx + 0x1b8]
mov eax, esi
sub eax, edi
push 0
push eax
lea eax, [edx + edi*2]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x4c]
call fcn.0047b645
mov edx, dword [ebx + 0x1c8]
add edi, eax
mov ecx, dword [ebx + 0x1b8]
mov eax, esi
sub eax, edi
push 0
push eax
lea eax, [edx + edi*2]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x48]
call fcn.0047b645
mov ecx, dword [ebx + 0x1b8]
add edi, eax
mov eax, dword [ebx + 0x1c8]
sub esi, edi
push 1
push esi
lea eax, [eax + edi*2]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x5c]
call fcn.0047b645
add edi, eax
mov esi, dword [ebp - 0x10]
inc edi
mov eax, dword [esi]
push 0xa
pop ecx
mov word [eax + edi*2 - 2], cx
xor ecx, ecx
mov eax, dword [esi]
mov word [eax + edi*2], cx
cmp byte [ebx + 0x199], cl
jne 0x47bb0b
push dword [ebx + 8]
push dword [esi]
call dword [sym.imp.msvcrt.dll_fputws]
pop ecx
pop ecx
test eax, eax
jns 0x47ba8a
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x47ba8a
or dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x47bb38
cmp eax, 0x2a
jne 0x47bac5
cmp byte [ebx + 0xd], 0
jne 0x47bac5
mov eax, dword [ebx + 0x1b0]
test eax, eax
jne 0x47babc
push 0x4665b0
call dword [sym.imp.msvcrt.dll_wprintf]
mov eax, dword [ebx + 0x1b0]
pop ecx
inc eax
mov dword [ebx + 0x1b0], eax
jmp 0x47baec
mov ecx, dword [ebx + 0x1b4]
test ecx, ecx
jne 0x47bae3
push eax
push 0x466698
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
mov ecx, dword [ebx + 0x1b4]
lea eax, [ecx + 1]
mov dword [ebx + 0x1b4], eax
push dword [ebx + 8]
push 0xa
call dword [sym.imp.msvcrt.dll_fputwc]
pop ecx
pop ecx
mov ecx, 0xffff
cmp ax, cx
jne 0x47bb38
call dword [sym.imp.msvcrt.dll__errno]
jmp 0x47bb38
cmp byte [ebx + 0x19a], cl
je 0x47bb38
mov esi, dword [esi]
cmp byte [ebx + 0x19b], cl
je 0x47bb26
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x47bb38
push 1
call fcn.00483379
push eax
push esi
call dword [sym.imp.msvcrt.dll_fputws]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 4