Function at 0x478ec0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d0c94
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.004381e0
push fcn.00438090
push 3
push 8
lea eax, [esp + 0x34]
mov ebp, ecx
push eax
mov dword [esp + 0x24], ebp
call fcn.00523bf3
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.00406610
add esp, 0xc
mov byte [esp + 0x44], 1
push eax
lea ecx, [esp + 0x28]
call fcn.00439f20
mov byte [esp + 0x44], bl
lea ecx, [esp + 0x14]
call fcn.004381e0
push str.__SOUTH
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00406610
add esp, 0xc
mov byte [esp + 0x44], 2
push eax
lea ecx, [esp + 0x30]
call fcn.00439f20
mov byte [esp + 0x44], bl
lea ecx, [esp + 0x14]
call fcn.004381e0
push str.__WEST
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00406610
add esp, 0xc
mov byte [esp + 0x44], 3
push eax
lea ecx, [esp + 0x38]
call fcn.00439f20
mov byte [esp + 0x44], bl
lea ecx, [esp + 0x14]
call fcn.004381e0
mov esi, dword [ebp + 0x5c]
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
jbe 0x478fa4
call fcn.0051d2bd
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 0x478fc4
call fcn.0051d2bd
mov eax, dword [esp + 0x14]
mov ebp, dword [ebp]
cmp eax, ebx
je 0x478fcf
cmp eax, ebp
je 0x478fd8
call fcn.0051d2bd
mov eax, dword [esp + 0x14]
cmp edi, esi
je 0x47922e
cmp eax, ebx
jne 0x479046
call fcn.0051d2bd
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x478ff5
call fcn.0051d2bd
mov ebp, dword [edi]
lea esi, [ebp + 9]
push esi
lea ecx, [esp + 0x20]
call fcn.00438190
mov byte [esp + 0x44], 4
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x479224
mov eax, dword [esi]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47904a
cmp dx, bx
je 0x479042
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47904a
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x479020
xor eax, eax
jmp 0x47904f
mov eax, dword [eax]
jmp 0x478feb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
je 0x4790ab
mov ecx, dword [ebp + 0x11]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
test eax, eax
jne 0x4790ab
push 0x12f
call fcn.004d9305
add esp, 4
mov dword [esp + 0x4c], eax
mov byte [esp + 0x44], 5
cmp eax, ebx
je 0x47909a
mov ecx, dword [ebp + 0x11]
push ecx
mov ecx, eax
call fcn.00490230
mov byte [esp + 0x44], 4
mov dword [ebp + 0x11], eax
mov ecx, eax
jmp 0x4791e5
xor eax, eax
mov byte [esp + 0x44], 4
mov dword [ebp + 0x11], eax
mov ecx, eax
jmp 0x4791e5
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x479224
mov eax, dword [esi]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4790e6
cmp dx, bx
je 0x4790e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4790e6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4790c0
xor eax, eax
jmp 0x4790eb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
je 0x479147
mov ecx, dword [ebp + 0x11]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
test eax, eax
jne 0x479147
push 0x12f
call fcn.004d9305
add esp, 4
mov dword [esp + 0x4c], eax
mov byte [esp + 0x44], 6
cmp eax, ebx
je 0x479136
mov ecx, dword [ebp + 0x11]
push ecx
mov ecx, eax
call fcn.00490230
mov byte [esp + 0x44], 4
mov dword [ebp + 0x11], eax
mov ecx, eax
jmp 0x4791dd
xor eax, eax
mov byte [esp + 0x44], 4
mov dword [ebp + 0x11], eax
mov ecx, eax
jmp 0x4791dd
mov ecx, dword [esp + 0x34]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x479224
mov eax, dword [esi]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x479186
cmp dx, bx
je 0x479182
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x479186
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x479160
xor eax, eax
jmp 0x47918b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
je 0x4791ea
mov ecx, dword [ebp + 0x11]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
test eax, eax
jne 0x4791ea
push 0x12f
call fcn.004d9305
add esp, 4
mov dword [esp + 0x4c], eax
mov byte [esp + 0x44], 7
cmp eax, ebx
je 0x4791c9
mov ecx, dword [ebp + 0x11]
push ecx
mov ecx, eax
call fcn.00490230
jmp 0x4791cb
xor eax, eax
mov byte [esp + 0x44], 4
mov ecx, eax
mov dword [ebp + 0x11], eax
call fcn.0048ff00
mov ecx, dword [ebp + 0x11]
call fcn.0048ff00
mov ecx, dword [ebp + 0x11]
call fcn.0048ff00
mov byte [esp + 0x44], bl
lea ecx, [esp + 0x1c]
call fcn.004381e0
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x479220
call fcn.0051d2bd
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x479210
call fcn.0051d2bd
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edi, 4
jmp 0x478fb0
mov eax, dword [eax]
jmp 0x479206
push 0x80004005
call fcn.00401300
mov dword [esp + 0x44], 0xffffffff
push fcn.004381e0
push 3
push 8
lea edx, [esp + 0x30]
push edx
call fcn.00523b90
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