Function at 0x405ff0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
and esp, 0xfffffff8
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov word [esp + 0x6a], 0xc640
mov dword [esp + 0x54], 0x7eb6d2f0
cmp eax, 0
sete bl
cmp ecx, 0
sete bh
and bh, bl
mov dword [esp + 0x20], edx
test bh, 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov byte [esp + 7], bl
jne 0x406099
jmp 0x406163
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
imul ecx, dword [esp + 0x5c]
mov dword [esp + 0x5c], ecx
mov dx, word [eax + 0x24]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x34], eax
shr dx, 1
movzx eax, dx
mov dword [esp + 0x40], eax
cmp dx, 0
jne 0x4061c1
mov al, 0xb9
mov byte [esp + 0x26], 0x6b
cmp al, byte [esp + 0x26]
jb 0x4062b7
jmp 0x4060f4
mov eax, dword [esp + 0x20]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x5c]
and ecx, dword [esp + 0x5c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x50], eax
mov dl, byte [esp + 0x5b]
mov eax, dword [esp + 0x50]
mov byte [esp + 0x5b], dl
mov ecx, dword [esp + 0xc]
cmp eax, ecx
je 0x406146
jmp 0x4061f2
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x14]
and eax, 0x2941b2aa
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0
mov eax, dword [ecx]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0
cmp eax, ecx
je 0x406099
jmp 0x40603e
mov eax, dword [esp + 0x34]
mov cl, byte [esp + 0x27]
mov dword [esp + 0x20], eax
test cl, 1
jne 0x406099
jmp 0x406086
mov eax, dword [esp + 0x10]
add eax, 0xfffffff8
mov dword [esp + 0x20], eax
jmp 0x406099
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
jmp 0x4060a5
mov ecx, dword fs:[0x18]
xor eax, eax
cmp ecx, 0x1000
cmovb ecx, eax
mov al, byte [esp + 0x5b]
mov dl, 0xb4
mul dl
mov byte [esp + 0x5b], al
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
add ecx, 0x14
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx]
mov dword [esp + 0x4c], ecx
mov si, word [esp + 0x58]
and si, 0x2113
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x4c]
mov word [esp + 0x58], si
mov dword [esp + 0x20], 0
cmp edi, ecx
je 0x406099
jmp 0x4061e5
mov dword [esp + 0x48], 0
jmp 0x406226
mov eax, dword [esp + 0x5c]
add eax, 0x642c0dc2
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
jmp 0x40603e
mov al, byte [esp + 7]
test al, 1
jne 0x4061cb
jmp 0x406156
mov eax, dword [esp + 0x10]
mov cx, word [eax + 0x24]
shr cx, 1
movzx eax, cx
mov dx, word [esp + 0x6a]
add dx, 0x39c0
mov dword [esp + 0x1c], eax
mov bl, byte [esp + 0x5b]
add bl, byte [esp + 0x5b]
mov byte [esp + 0x5b], bl
cmp cx, dx
je 0x4062b7
jmp 0x40628d
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 8]
mov si, word [edx + eax*2]
mov di, word [ecx + eax*2]
mov bx, di
add bx, 0xffbf
mov cx, di
add cx, 0x20
cmp bx, 0x1a
cmovb di, cx
mov edx, dword [esp + 0x54]
add edx, 0x81492d11
cmp si, di
sete cl
and cl, 1
mov byte [esp + 0x27], cl
cmp di, 0
setne cl
and cl, byte [esp + 0x27]
mov esi, dword [esp + 0x40]
add eax, edx
cmp eax, esi
setb ch
and cl, ch
mov dword [esp + 0x48], eax
test cl, 1
jne 0x406226
jmp 0x40612c
mov dword [esp + 0x2c], 0
jmp 0x4062ea
mov al, byte [esp + 0x33]
mov cl, byte [esp + 0x5b]
sub cl, byte [esp + 0x5b]
mov edx, dword [esp + 0x50]
mov byte [esp + 0x5b], cl
mov dword [esp + 0x20], edx
test al, 1
jne 0x406099
mov ax, word [esp + 0x58]
mov ecx, dword [esp + 0x10]
imul ax, word [esp + 0x58]
mov word [esp + 0x58], ax
mov ecx, dword [ecx]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], 0
cmp ecx, edx
je 0x406099
jmp 0x4060a5
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
mov bx, word [esp + 0x58]
imul bx, word [esp + 0x58]
cmp si, 0x1a
cmovb dx, di
mov word [esp + 0x58], bx
mov ecx, dword [esp + 8]
cmp word [ecx + eax*2], dx
sete cl
and cl, 1
mov byte [esp + 0x33], cl
mov ecx, dword [esp + 0x1c]
add eax, 1
cmp eax, ecx
setb cl
mov ch, byte [esp + 0x33]
cmp dx, 0
setne dl
and ch, dl
and ch, cl
mov dword [esp + 0x2c], eax
test ch, 1
jne 0x4062ea
jmp 0x406297