Function at 0x404900
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x41328c
mov eax, dword fs:[0]
push eax
sub esp, 0xe98
mov eax, dword [0x4181fc]
xor eax, esp
mov dword [esp + 0xe94], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4181fc]
xor eax, esp
push eax
lea eax, [esp + 0xeac]
mov dword fs:[0], eax
xor ebx, ebx
mov ebp, ecx
cmp dword [0x4197c8], ebx
je 0x40494f
lea eax, [ebx + 1]
jmp 0x404cc5
push 0xffffffffffffffff
call sub.IMM32.dll_ImmDisableIME
mov eax, dword [0x4197fc]
xor esi, esi
cmp eax, ebx
jle 0x404983
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x419800]
mov ecx, dword [eax + esi*4]
push ecx
call edi
push 0x414228
call edi
mov eax, dword [0x4197fc]
inc esi
cmp esi, eax
jl 0x404967
cmp eax, 2
jl 0x404cc3
cmp eax, 3
jge 0x4049aa
mov edx, dword [0x419800]
mov eax, dword [edx + 4]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], 0x414956
mov byte [ebp + 0x18], 1
jmp 0x404a27
cmp eax, 4
jge 0x4049cc
mov ecx, dword [0x419800]
mov edx, dword [ecx + 4]
mov dword [ebp + 8], edx
mov eax, dword [0x419800]
mov ecx, dword [eax + 8]
mov dword [ebp + 0xc], ecx
mov byte [ebp + 0x18], 1
jmp 0x404a27
mov edx, dword [0x419800]
mov eax, dword [edx + 4]
mov dword [ebp + 8], eax
mov ecx, dword [0x419800]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [0x419800]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.004072d0
add esp, 4
cmp eax, 1
sete dl
mov byte [ebp + 0x18], dl
cmp dword [0x4197fc], 4
jle 0x404a12
mov eax, dword [0x419800]
mov ecx, dword [eax + 0x10]
mov dword [ebp + 0x10], ecx
cmp dword [0x4197fc], 5
jle 0x404a27
mov edx, dword [0x419800]
mov eax, dword [edx + 0x14]
mov dword [ebp + 0x14], eax
mov esi, dword [ebp + 8]
call fcn.004048c0
mov dword [ebp + 4], eax
mov dword [esp + 0x68], vtable.CDlg.0
push 0x7d0
mov dword [esp + 0xeb8], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x208
lea ecx, [esp + 0x68c]
push ebx
push ecx
call fcn.00405490
push 0x208
lea edx, [esp + 0xaa8]
push ebx
push edx
call fcn.00405490
push 0x208
lea eax, [esp + 0xcbc]
push ebx
push eax
call fcn.00405490
add esp, 0x24
push 0x206
lea ecx, [esp + 0x68c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x688]
push 0x5c
push edx
call fcn.004052b8
add esp, 8
cmp byte [eax], bl
je 0x404ab5
mov byte [eax + 1], bl
xor eax, eax
jmp 0x404ac0
mov cl, byte [esp + eax + 0x688]
mov byte [esp + eax + 0xa98], cl
inc eax
cmp cl, bl
jne 0x404ac0
xor eax, eax
jmp 0x404ae0
mov cl, byte [esp + eax + 0x688]
mov byte [esp + eax + 0xca0], cl
inc eax
cmp cl, bl
jne 0x404ae0
mov eax, dword [ebp + 0x10]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404af8
lea edi, [esp + 0xa98]
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x404b10
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404b30
lea edi, [esp + 0xca0]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x404b43
mov edx, dword [ebp + 8]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xca0]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0xa9c]
push ecx
push edx
call fcn.0040378d
add esp, 0xc
lea ecx, [esp + 0x68]
call fcn.00401d00
push 0x208
lea eax, [esp + 0x894]
push ebx
push eax
call fcn.00405490
add esp, 0xc
cmp dword [esp + 0x684], ebx
je 0x404cc3
push 0x206
lea ecx, [esp + 0x480]
push ecx
lea edx, [esp + 0x898]
push edx
call fcn.004072a0
mov ebp, dword [ebp + 0xc]
mov esi, 0xf
mov eax, ebp
add esp, 0xc
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404bd7
sub eax, ecx
push eax
push ebp
lea ecx, [esp + 0x54]
call fcn.00401880
lea eax, [esp + 0x890]
mov byte [esp + 0xeb4], 1
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404c10
sub eax, ecx
push eax
lea eax, [esp + 0x894]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401880
push ebx
push 0x414956
lea ecx, [esp + 0x38]
mov byte [esp + 0xebc], 2
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00401880
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0xec0], 3
call fcn.00403c12
mov edi, 0x10
add esp, 0xc
cmp dword [esp + 0x48], edi
jb 0x404c85
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00405090
add esp, 4
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
cmp dword [esp + 0x2c], edi
jb 0x404ca4
mov edx, dword [esp + 0x18]
push edx
call fcn.00405090
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
cmp dword [esp + 0x64], edi
jb 0x404cc3
mov eax, dword [esp + 0x50]
push eax
call fcn.00405090
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xeac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe94]
xor ecx, esp
call fcn.00405477
add esp, 0xea4
ret