Function at 0x40c610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445c14
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x461264]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
lea esi, [edi + 8]
mov dword [edi], vtable.MessageLoop.0
mov dword [edi + 4], eax
mov dword [ebp + 8], esi
push 8
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004299f8
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
lea esi, [edi + 0x38]
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp + 8], esi
push 8
mov byte [ebp - 4], 2
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004299f8
mov dword [esi], eax
add esp, 8
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [edi + 0x4c], 0
lea esi, [edi + 0x50]
mov byte [ebp - 4], 4
mov ecx, esi
mov dword [ebp + 8], esi
call fcn.004191d0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov word [edi + 0x68], 1
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0xf
mov byte [edi + 0x6c], 0
lea esi, [edi + 0x88]
mov dword [edi + 0x84], 0
mov dword [ebp + 8], esi
push 8
mov byte [ebp - 4], 6
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004299f8
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov byte [ebp - 4], 7
lea ecx, [edi + 0x9c]
mov dword [ebp + 8], ecx
call fcn.00418b80
mov dword [edi + 0xb4], 0
lea esi, [edi + 0xc8]
mov dword [edi + 0xb8], 0
mov ecx, esi
mov dword [edi + 0xbc], 0
mov byte [ebp - 4], 8
mov byte [edi + 0xc0], 0
mov dword [edi + 0xc4], 0
mov dword [ebp + 8], esi
call fcn.004191d0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [edi + 0xe0], 0
mov dword [edi + 0xe4], 0
mov eax, dword [0x462f60]
mov dword [ebp - 4], 0xb
test eax, 0xfffffffe
jne 0x40c891
push 0x462f60
call fcn.00418b40
add esp, 4
test al, al
je 0x40c891
push 0x462f64
mov dword [0x462f64], 0
call fcn.00420cc0
push 0x40df30
push 0x462f60
push 0x462f64
push 0x462f60
call fcn.00418b20
add esp, 0x14
mov eax, dword [0x462f60]
push edi
push eax
call fcn.00420df0
push 0x24
call fcn.004299f8
add esp, 0xc
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x40c8bd
mov ecx, eax
call fcn.0041cd60
mov ebx, eax
jmp 0x40c8bf
xor ebx, ebx
mov byte [ebp - 4], 0xb
test ebx, ebx
je 0x40c8cf
lea ecx, [ebx + 4]
call fcn.0040bfc0
mov esi, dword [edi + 0xe0]
mov dword [edi + 0xe0], ebx
test esi, esi
je 0x40c8fd
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.0040bfe0
test al, al
je 0x40c8fd
xor eax, eax
test ebx, ebx
cmove esi, eax
push esi
call fcn.0040c060
add esp, 4
push 4
call fcn.004299f8
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xf
test esi, esi
je 0x40c943
mov ecx, dword [edi + 0xe0]
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x40c929
add ecx, 4
call fcn.0040bfc0
lea eax, [ebp + 8]
mov byte [ebp - 4], 0x10
push eax
mov ecx, esi
mov dword [ebp - 0x10], 2
call fcn.00420ac0
mov ebx, eax
jmp 0x40c945
xor ebx, ebx
mov esi, dword [edi + 0xe4]
cmp ebx, esi
je 0x40c96b
test esi, esi
je 0x40c965
mov ecx, esi
call fcn.00420b80
push 4
push esi
call fcn.00429a28
add esp, 8
mov dword [edi + 0xe4], ebx
test byte [ebp - 0x10], 2
mov dword [ebp - 4], 0xb
je 0x40c9a7
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0x12
test eax, eax
je 0x40c9a3
lea esi, [eax + 4]
mov ecx, esi
call fcn.0040bfe0
test al, al
je 0x40c9a3
lea eax, [esi - 4]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0040c060
add esp, 4
mov byte [ebp - 4], 0xb
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x40c9da
mov eax, dword [0x462f6c]
test eax, eax
je 0x40c9bc
call eax
jmp 0x40ca21
push 0x40
call fcn.004299f8
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x13
test eax, eax
je 0x40ca1b
mov ecx, eax
call fcn.00419730
jmp 0x40ca1d
cmp eax, 2
jne 0x40c9fd
push 0x58
call fcn.004299f8
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x14
test eax, eax
je 0x40ca1b
mov ecx, eax
call fcn.00419640
jmp 0x40ca1d
push 0x18
call fcn.004299f8
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x17
test eax, eax
je 0x40ca1b
mov ecx, eax
call fcn.0041d100
jmp 0x40ca1d
xor eax, eax
mov byte [ebp - 4], 0xb
push eax
lea ecx, [edi + 0x4c]
call fcn.0040d2d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4