Function at 0x405e50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42f1eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x860
mov eax, dword [0x43e234]
push ebx
push esi
mov dword [esp + 0x860], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [eax + 0xc]
lea edx, [esp + 0x460]
xor esi, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 0x3ff
xor ebx, ebx
mov ecx, dword [edi + 0x294]
test ecx, ecx
mov dword [esp + 0xc], esi
je 0x405fe7
mov eax, dword [edi + 0x298]
sub eax, ecx
sar eax, 5
cmp esi, eax
jae 0x405fe7
mov ecx, dword [edi + 0xe0]
lea eax, [esp + 0x18]
push eax
push 0
push 0x1005
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x405fe0
mov eax, dword [edi + 0x294]
push 6
lea ecx, [ebx + eax]
mov byte [esp + 0x863], 0
mov edx, dword [ecx + 0x14]
push 0x431b40
push edx
push 0
call fcn.00402030
test eax, eax
jne 0x405f43
mov ecx, 0x100
lea esi, [esp + 0x460]
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
inc esi
add ebx, 0x20
jmp 0x405eaf
mov eax, dword [edi + 0x294]
push 6
lea ecx, [ebx + eax]
mov eax, dword [ecx + 0x14]
push str.hash
push eax
push 0
call fcn.00402030
test eax, eax
jne 0x405fc0
lea ecx, [esp + 0x460]
push ecx
lea ecx, [esp + 0x14]
call fcn.00405da0
lea edx, [esp + 0x448]
push edx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x87c], 0
call fcn.004046a0
add esp, 8
or edx, 0xffffffff
test al, al
mov eax, dword [esp + 0x10]
mov dword [esp + 0x874], 0xffffffff
je 0x405fc9
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc esi
add ebx, 0x20
jmp 0x405eaf
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fe0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
jmp 0x40611a
lea esi, [edi + 0x258]
lea ebx, [edi + 0x280]
push esi
mov ecx, ebx
call fcn.00403270
cmp eax, dword [ebx + 4]
mov dword [esp + 0xc], eax
je 0x40602e
cmp dword [eax + 0x24], 0x10
mov ecx, dword [eax + 0x20]
jb 0x406012
mov eax, dword [eax + 0x10]
jmp 0x406015
add eax, 0x10
push ecx
push eax
mov eax, dword [esi + 0x14]
push eax
push 0
mov ecx, esi
call fcn.00402030
test eax, eax
jl 0x40602e
lea eax, [esp + 0xc]
jmp 0x406039
mov ecx, dword [ebx + 4]
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x10]
mov eax, dword [eax]
mov ebx, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
cmp ebx, eax
mov dword [esp + 0xc], eax
je 0x405fe0
lea esp, [esp]
lea eax, [esp + 0x48]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406057
sub eax, edx
mov edx, dword [ebx + 0x14]
mov ecx, edx
cmp ecx, edx
mov esi, eax
mov dword [esp + 0x10], esi
jae 0x40606f
test edx, edx
je 0x4060a6
cmp edx, esi
mov ecx, edx
jb 0x40607b
mov ecx, esi
cmp dword [ebx + 0x18], 0x10
jb 0x406086
mov eax, dword [ebx + 4]
jmp 0x406089
lea eax, [ebx + 4]
mov esi, eax
lea edi, [esp + 0x48]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40609a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov edi, dword [esp + 0x14]
jne 0x4060b5
mov esi, dword [esp + 0x10]
cmp edx, esi
jb 0x4060b5
xor eax, eax
cmp edx, esi
setne al
test eax, eax
je 0x4060c0
mov eax, dword [esp + 0xc]
add ebx, 0x48
cmp ebx, eax
jne 0x406050
mov eax, dword [esp + 0xc]
cmp ebx, eax
je 0x405fe0
mov eax, dword [ebx + 0x20]
mov ebx, dword [ebx + 0x24]
mov dword [esp + 0x40], eax
or eax, ebx
mov dword [esp + 0x44], ebx
je 0x405fe0
mov eax, dword [edi + 0x254]
test eax, eax
je 0x406118
mov edx, dword [ebp + 0xc]
push edx
sub esp, 0x41c
mov edi, esp
mov ecx, 0x107
lea esi, [esp + 0x460]
mov dword [esp + 0x878], 0
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call fcn.004010a0
mov al, 1
mov ecx, dword [esp + 0x86c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x864]
call fcn.00415411
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8