Function at 0x405abf
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21e8
call fcn.0042f1b0
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
cmp esi, edi
jne 0x405adc
xor ebx, ebx
jmp 0x405b0a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp + 0x10], eax
add eax, 3
and al, 0xfc
call fcn.0042f1b0
mov ebx, esp
push edi
push edi
push dword [ebp + 0x10]
and byte [ebx], 0
push ebx
push 0xffffffffffffffff
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call ebx
push 0x44b2a4
call ebx
push dword [ebp + 0x14]
push 0x441530
push edi
call fcn.00405d4d
mov eax, dword [ebp + 0x14]
cmp word [esi], di
mov dword [ebp + 0x14], esi
mov eax, dword [eax]
mov dword [ebp - 8], eax
je 0x405d08
mov esi, 0x44b2a0
jmp 0x405b45
xor edi, edi
and byte [ebp - 0x1fe8], 0
push 0x7c
push dword [ebp + 0x14]
mov dword [ebp - 0xa8], 2
call fcn.0042f89b
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 4], eax
jne 0x405b79
mov edi, dword [ebp + 0x14]
push edi
call fcn.0042f135
lea eax, [edi + eax*2]
pop ecx
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x21e8]
sub edi, dword [ebp + 0x14]
sar edi, 1
shl edi, 1
push edi
push dword [ebp + 0x14]
push eax
call fcn.0042f0f8
mov eax, dword [ebp + 8]
and word [ebp + edi - 0x21e8], 0
add esp, 0xc
lea edx, [ebp - 0x21e8]
mov eax, dword [eax + 0x60]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x94]
lea eax, [ebp - 0x1fe8]
push eax
call ebx
push 0x44b2a4
call ebx
lea eax, [ebp - 0x1fe8]
push 0x2f
push eax
call fcn.0042fcf0
pop ecx
test eax, eax
pop ecx
je 0x405cec
and byte [eax + 1], 0
lea eax, [ebp - 0x1fe8]
lea ecx, [ebp - 0xa4]
mov dword [ebp + 0x14], eax
call fcn.00405d1d
cmp byte [ebp - 0x1fe8], 0
je 0x405cec
push 0x2f
push dword [ebp + 0x14]
call fcn.0042f6e0
push dword [ebp + 0x14]
mov edi, eax
lea eax, [ebp - 0xa4]
and byte [edi], 0
push eax
call fcn.0042fbf0
push 0x2f
lea eax, [edi + 1]
pop edi
mov dword [ebp + 0x14], eax
push edi
push eax
call fcn.0042f6e0
add esp, 0x18
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp + 0x14]
call fcn.0042f8c4
mov eax, dword [ebp + 0x10]
push edi
inc eax
push eax
mov dword [ebp + 0x14], eax
call fcn.0042f6e0
add esp, 0x14
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 0x14]
call fcn.0042f8c4
mov eax, dword [ebp + 0x10]
push edi
inc eax
push eax
mov dword [ebp + 0x14], eax
call fcn.0042f6e0
add esp, 0x14
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp + 0x14]
call fcn.0042f8c4
mov eax, dword [ebp + 0x10]
push edi
inc eax
push eax
mov dword [ebp + 0x14], eax
call fcn.0042f6e0
add esp, 0x14
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp + 0x14]
call fcn.0042f8c4
mov eax, dword [ebp + 0x10]
push edi
inc eax
push eax
mov dword [ebp + 0x14], eax
call fcn.0042f6e0
add esp, 0x14
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 0x14]
call fcn.0042f8c4
add esp, 0xc
lea eax, [ebp - 0xa4]
inc edi
push eax
mov dword [ebp + 0x14], edi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
lea ecx, [eax + 0x20]
call fcn.00406156
cmp byte [edi], 0
jne 0x405c02
mov eax, dword [ebp - 4]
cmp word [eax], 0
je 0x405d05
add eax, 2
mov dword [ebp + 0x14], eax
cmp word [eax], 0
jne 0x405b43
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
lea esp, [ebp - 0x21f4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10