Function at 0x46cb00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e410c
mov eax, dword fs:[0]
push eax
sub esp, 0xe8c
mov eax, dword [0x513200]
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, ecx
cmp dword [0x52817c], 0
je 0x46cb43
mov eax, 1
jmp 0x46cec1
push 0xffffffffffffffff
call sub.IMM32.dll_ImmDisableIME
xor esi, esi
call fcn.004b4d99
cmp dword [eax], esi
jle 0x46cb7d
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop dword [eax + eax]
call fcn.004b4d9f
mov eax, dword [eax]
push dword [eax + esi*4]
call edi
push 0x4e7980
call edi
inc esi
call fcn.004b4d99
cmp esi, dword [eax]
jl 0x46cb60
call fcn.004b4d99
cmp dword [eax], 2
jl 0x46cebf
call fcn.004b4d99
cmp dword [eax], 3
jge 0x46cbb2
call fcn.004b4d9f
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0x4e7724
mov byte [ebx + 0x18], 1
jmp 0x46cc3f
call fcn.004b4d99
cmp dword [eax], 4
jge 0x46cbdc
call fcn.004b4d9f
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebx + 8], eax
call fcn.004b4d9f
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x18], 1
jmp 0x46cc3f
call fcn.004b4d9f
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebx + 8], eax
call fcn.004b4d9f
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebx + 0xc], eax
call fcn.004b4d9f
mov eax, dword [eax]
push dword [eax + 0xc]
call fcn.004b4cff
add esp, 4
cmp eax, 1
sete al
mov byte [ebx + 0x18], al
call fcn.004b4d99
cmp dword [eax], 4
jle 0x46cc28
call fcn.004b4d9f
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x10], eax
call fcn.004b4d99
cmp dword [eax], 5
jle 0x46cc3f
call fcn.004b4d9f
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
mov dword [ebx + 0x14], eax
push dword [ebx + 8]
call fcn.0046cae0
add esp, 4
mov dword [ebx + 4], eax
mov dword [ebp - method.CDlg.virtual_0], vtable.CDlg.0
push 0x7d0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048bb90
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0048bb90
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0048bb90
add esp, 0x24
lea eax, [ebp - 0x218]
push 0x206
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0049706f
add esp, 8
cmp byte [eax], 0
je 0x46ccd3
mov byte [eax + 1], 0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x218]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x629], al
test al, al
jne 0x46ccd5
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x218]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x421], al
test al, al
jne 0x46ccf0
mov edx, dword [ebx + 0x10]
mov esi, edx
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x46cd10
lea edi, [ebp - 0x628]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46cd20
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebx + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x46cd40
lea edi, [ebp - 0x420]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46cd50
mov ecx, edx
lea eax, [ebp - 0x420]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x628]
mov ecx, edx
push eax
push dword [ebx + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046ad3e
add esp, 0xc
lea ecx, [ebp - 0xe98]
call fcn.0045e910
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.0048bb90
add esp, 0xc
cmp dword [ebp - 0x87c], 0
je 0x46cebf
push 0x206
lea eax, [ebp - 0xa84]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.004b4e25
mov edx, dword [ebx + 0xc]
add esp, 0xc
mov ecx, edx
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x864], 0xf
mov byte [ebp - 0x878], 0
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46cdf0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x878]
call fcn.004608e0
lea ecx, [ebp - 0x830]
mov byte [ebp - 4], 1
mov dword [ebp - 0x850], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x84c], 0xf
mov byte [ebp - 0x860], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46ce30
sub ecx, edx
lea eax, [ebp - 0x830]
push ecx
push eax
lea ecx, [ebp - 0x860]
call fcn.004608e0
push 0
push 0x4e7724
lea ecx, [ebp - 0x848]
mov byte [ebp - 4], 2
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 0xf
mov byte [ebp - 0x848], 0
call fcn.004608e0
lea eax, [ebp - 0x878]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x848]
push eax
call fcn.0046bb42
add esp, 0xc
lea ecx, [ebp - 0x848]
call fcn.0045d7a0
lea ecx, [ebp - 0x860]
call fcn.0045d7a0
lea ecx, [ebp - 0x878]
call fcn.0045d7a0
xor eax, eax
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.00489940
mov esp, ebp
pop ebp
ret