Function at 0x406380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x492558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4be818]
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
push 0x4b8b3c
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call fcn.0048241d
mov edx, eax
test edx, edx
jl 0x40640e
mov edi, 0x4b8b30
or ecx, 0xffffffff
xor eax, eax
push 0x28
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x18]
add ecx, edx
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.00482246
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.0048456c
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.00484433
mov esi, 2
jmp 0x40646a
push 0x4b8b28
lea ecx, [esp + 0x30]
call fcn.0048241d
mov edx, eax
test edx, edx
jl 0x406718
mov edi, 0x4b8b1c
or ecx, 0xffffffff
xor eax, eax
push 0x20
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call fcn.00482246
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.0048456c
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.00484433
mov esi, 1
mov edx, dword [0x4be818]
push ebp
mov dword [esp + 0x18], edx
push 0x4b8b10
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 5
call fcn.0048241d
mov ebp, eax
test ebp, ebp
jl 0x406709
mov eax, dword [esp + 0x30]
mov edi, 0x4b8b10
or ecx, 0xffffffff
mov edx, dword [eax - 8]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, ebp
sub edx, ecx
lea ecx, [esp + 0x1c]
push edx
push ecx
lea ecx, [esp + 0x38]
call fcn.004822dc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 6
call fcn.0048456c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 5
call fcn.00484433
push 0x4c2d98
push 0x4b84a0
lea ecx, [esp + 0x20]
call fcn.004820c0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
push 0x4b8278
push eax
call fcn.0046f2c3
mov eax, dword [0x4b892c]
add esp, 0xc
and eax, esi
cmp eax, 1
jne 0x40660d
mov edx, dword [0x4b892c]
mov ecx, dword [0x4c368c]
and edx, 0xfffffffe
lea eax, [esp + 0x10]
mov dword [0x4b892c], edx
mov edx, dword [esp + 0xc]
mov dword [ecx + 0xb0], edx
mov ecx, dword [0x4c368c]
push eax
add ecx, 0xb4
call fcn.0048456c
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], 0x20
je 0x40658e
mov eax, dword [0x4c368c]
push 0x4c2d98
mov dword [eax + 0xb0], 0
mov ecx, dword [0x4c368c]
add ecx, 0xb4
call fcn.004845bc
mov edx, dword [0x4c2dc8]
mov esi, 1
push esi
push esi
push 0x483
push edx
jmp 0x4066f0
mov edx, dword [0x4c368c]
mov eax, dword [esp + 0xc]
add edx, 0x748
lea ecx, [esp + 0x1c]
push edx
push eax
push ecx
call fcn.00406760
mov edx, dword [esp + 0x1c]
mov eax, dword [eax]
push edx
push eax
call fcn.0046f2f7
add esp, 0x14
lea ecx, [esp + 0x1c]
test eax, eax
sete al
and eax, 0xff
mov esi, eax
call fcn.00484433
test esi, esi
jne 0x4065f9
mov ecx, dword [0x4c2dcc]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
mov dword [ecx + 0x84], edx
mov ecx, dword [0x4c2dcc]
push eax
add ecx, 0x8c
call fcn.0048456c
mov edx, dword [0x4c2dc8]
push esi
push 1
push 0x483
push edx
jmp 0x4066f0
cmp eax, 2
jne 0x4066f6
mov edx, dword [0x4b892c]
mov eax, dword [0x4c368c]
mov ecx, dword [esp + 0xc]
and edx, 0xfffffffd
mov dword [0x4b892c], edx
mov dword [eax + 0xbc], ecx
mov eax, dword [0x4c368c]
lea edx, [esp + 0x14]
push edx
lea ecx, [eax + 0xc0]
call fcn.0048456c
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 8], 0x28
je 0x40667f
mov edx, dword [0x4c368c]
push 0x4c2d98
mov dword [edx + 0xbc], 0
mov eax, dword [0x4c368c]
lea ecx, [eax + 0xc0]
call fcn.004845bc
mov esi, 1
jmp 0x4066e1
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, 0x4c2ef0
call fcn.0043e3c0
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push ecx
push eax
call fcn.0046f2f7
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete dl
and edx, 0xff
mov esi, edx
call fcn.00484433
test esi, esi
jne 0x4066e1
mov eax, dword [0x4c2dcc]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [eax + 0x88], ecx
mov eax, dword [0x4c2dcc]
push edx
lea ecx, [eax + 0x90]
call fcn.0048456c
mov ecx, dword [0x4c2dc8]
push esi
push 2
push 0x483
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x4b892c]
test eax, eax
jne 0x406709
mov dword [0x4c2db8], 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.00484433
pop ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.00484433
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.00484433
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00484433
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret