Function at 0x46b4e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bea74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
push fcn.0042ee10
push fcn.0042ecc0
push 3
push 8
lea eax, [esp + 0x34]
mov ebp, ecx
push eax
mov dword [esp + 0x24], ebp
call fcn.00514c93
xor ebx, ebx
mov dword [esp + 0x44], ebx
mov esi, dword [esp + 0x4c]
push str.__EAST
add esi, 9
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00406800
add esp, 0xc
mov byte [esp + 0x44], 1
push eax
lea ecx, [esp + 0x28]
call fcn.00430b50
mov byte [esp + 0x44], bl
lea ecx, [esp + 0x14]
call fcn.0042ee10
push str.__SOUTH
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00406800
add esp, 0xc
mov byte [esp + 0x44], 2
push eax
lea ecx, [esp + 0x30]
call fcn.00430b50
mov byte [esp + 0x44], bl
lea ecx, [esp + 0x14]
call fcn.0042ee10
push str.__WEST
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00406800
add esp, 0xc
mov byte [esp + 0x44], 3
push eax
lea ecx, [esp + 0x38]
call fcn.00430b50
mov byte [esp + 0x44], bl
lea ecx, [esp + 0x14]
call fcn.0042ee10
mov esi, dword [ebp + 0x5c]
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
jbe 0x46b5c4
call fcn.0050eb52
mov eax, dword [esi]
mov dword [esp + 0x14], eax
lea ebx, [ebx]
mov ebp, dword [ebp + 0x5c]
mov esi, dword [ebp + 0x10]
cmp dword [ebp + 0xc], esi
jbe 0x46b5e4
call fcn.0050eb52
mov eax, dword [esp + 0x14]
mov ebp, dword [ebp]
cmp eax, ebx
je 0x46b5ef
cmp eax, ebp
je 0x46b5f8
call fcn.0050eb52
mov eax, dword [esp + 0x14]
cmp edi, esi
je 0x46b84e
cmp eax, ebx
jne 0x46b666
call fcn.0050eb52
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x46b615
call fcn.0050eb52
mov ebp, dword [edi]
lea esi, [ebp + 9]
push esi
lea ecx, [esp + 0x20]
call fcn.0042edc0
mov byte [esp + 0x44], 4
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x46b844
mov eax, dword [esi]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46b66a
cmp dx, bx
je 0x46b662
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46b66a
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x46b640
xor eax, eax
jmp 0x46b66f
mov eax, dword [eax]
jmp 0x46b60b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
je 0x46b6cb
mov ecx, dword [ebp + 0x11]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
test eax, eax
jne 0x46b6cb
push 0x12e
call fcn.004cb075
add esp, 4
mov dword [esp + 0x4c], eax
mov byte [esp + 0x44], 5
cmp eax, ebx
je 0x46b6ba
mov ecx, dword [ebp + 0x11]
push ecx
mov ecx, eax
call fcn.004822e0
mov byte [esp + 0x44], 4
mov dword [ebp + 0x11], eax
mov ecx, eax
jmp 0x46b805
xor eax, eax
mov byte [esp + 0x44], 4
mov dword [ebp + 0x11], eax
mov ecx, eax
jmp 0x46b805
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x46b844
mov eax, dword [esi]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46b706
cmp dx, bx
je 0x46b702
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46b706
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x46b6e0
xor eax, eax
jmp 0x46b70b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
je 0x46b767
mov ecx, dword [ebp + 0x11]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
test eax, eax
jne 0x46b767
push 0x12e
call fcn.004cb075
add esp, 4
mov dword [esp + 0x4c], eax
mov byte [esp + 0x44], 6
cmp eax, ebx
je 0x46b756
mov ecx, dword [ebp + 0x11]
push ecx
mov ecx, eax
call fcn.004822e0
mov byte [esp + 0x44], 4
mov dword [ebp + 0x11], eax
mov ecx, eax
jmp 0x46b7fd
xor eax, eax
mov byte [esp + 0x44], 4
mov dword [ebp + 0x11], eax
mov ecx, eax
jmp 0x46b7fd
mov ecx, dword [esp + 0x34]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x46b844
mov eax, dword [esi]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46b7a6
cmp dx, bx
je 0x46b7a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46b7a6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x46b780
xor eax, eax
jmp 0x46b7ab
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
je 0x46b80a
mov ecx, dword [ebp + 0x11]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
test eax, eax
jne 0x46b80a
push 0x12e
call fcn.004cb075
add esp, 4
mov dword [esp + 0x4c], eax
mov byte [esp + 0x44], 7
cmp eax, ebx
je 0x46b7e9
mov ecx, dword [ebp + 0x11]
push ecx
mov ecx, eax
call fcn.004822e0
jmp 0x46b7eb
xor eax, eax
mov byte [esp + 0x44], 4
mov ecx, eax
mov dword [ebp + 0x11], eax
call fcn.00481fb0
mov ecx, dword [ebp + 0x11]
call fcn.00481fb0
mov ecx, dword [ebp + 0x11]
call fcn.00481fb0
mov byte [esp + 0x44], bl
lea ecx, [esp + 0x1c]
call fcn.0042ee10
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x46b840
call fcn.0050eb52
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x46b830
call fcn.0050eb52
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edi, 4
jmp 0x46b5d0
mov eax, dword [eax]
jmp 0x46b826
push 0x80004005
call fcn.004013e0
mov dword [esp + 0x44], 0xffffffff
push fcn.0042ee10
push 3
push 8
lea edx, [esp + 0x30]
push edx
call fcn.00514c30
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4