Function at 0x489280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x73c01f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov edi, vtable.CBArray_unsigned_long_int_.0
mov ebp, 1
mov dword [esp + 0x18], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x270], ebx
call fcn.00412d40
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
mov ecx, esi
mov byte [esp + 0x270], 2
call fcn.00489190
push ebx
mov ebx, dword [esp + 0x27c]
push ebx
call fcn.00659110
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x48931c
mov dword [esp + 0x1c], edi
jmp 0x4897bb
mov ax, word [ebp + 0x2a]
push eax
call fcn.00659140
add esp, 4
test eax, eax
mov dword [esp + 0x3c], eax
jne 0x48933a
mov dword [esp + 0x1c], edi
jmp 0x4897bb
mov edi, dword [esi + 0xac]
imul edi, dword [esi + 0xa8]
mov word [esi + 0xb0], bx
mov eax, dword [0x914298]
cmp dword [eax + 0x8bdb4], 0
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0
jbe 0x48965a
xor ebx, ebx
mov dword [esp + 0x30], ebx
jmp 0x489380
cmp dword [ebx + eax + 0xedb4], 5
lea ebx, [ebx + eax + 0xedb4]
jne 0x48962c
mov eax, dword [esi + 0xb4]
add eax, 2
xor edx, edx
mov ecx, 3
div ecx
cmp dword [ebx + 0x198], edx
jne 0x48962c
mov edx, dword [ebx + 0x58]
lea ecx, [ebx + 0x58]
call dword [edx + 0xc]
test eax, eax
jne 0x48962c
mov eax, dword [ebx + 0x19c]
cmp eax, edi
jae 0x48962c
mov edx, dword [esi]
push 0
push 0x85d210
push 0x85b460
push 0
add eax, 0x2710
push eax
mov ecx, esi
call dword [edx + 0x8c]
push eax
call fcn.0071f44c
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x48962c
mov eax, dword [ebx + 0x80]
lea edi, [ebx + 0x80]
mov ecx, edi
call dword [eax + 0xc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x489455
xor esi, esi
test eax, eax
jbe 0x489445
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
cmp eax, dword [ecx + 0x294]
je 0x489441
add esi, 1
cmp esi, dword [esp + 0x10]
jb 0x489422
mov eax, dword [esp + 0x10]
cmp esi, eax
sbb edx, edx
neg edx
mov dword [esp + 0x10], edx
je 0x489624
mov eax, dword [ebx + 0x9c]
mov ecx, dword [0x905af8]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 0x10]
mov edi, eax
test edi, edi
je 0x4894a3
push 0x18
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x270], 3
je 0x489497
push 5
push 1
push edi
mov ecx, eax
call fcn.0043d480
jmp 0x489499
xor eax, eax
mov byte [esp + 0x270], 2
mov edi, eax
mov eax, dword [ebp]
push 0
push 0x85b5f4
push 0x85b460
push 0
push 0x2710
mov ecx, ebp
call dword [eax + 0x8c]
push eax
call fcn.0071f44c
add esp, 0x14
push 0
push 0x782c9c
push 0
push edi
mov esi, eax
mov edx, dword [esi]
push 0
push 0
mov ecx, esi
call dword [edx + 0x134]
mov eax, dword [esi]
push 0
push 0x782c9c
push 1
push edi
push 0
push 1
mov ecx, esi
call dword [eax + 0x134]
mov edx, dword [esi]
push 0
push 0x782c9c
push 2
push edi
push 0
push 2
mov ecx, esi
call dword [edx + 0x134]
mov eax, dword [esi]
push 0
push 0x782c9c
push 3
push edi
push 0
push 3
mov ecx, esi
call dword [eax + 0x134]
mov edx, dword [esi]
push 0
push 0x782c9c
push 4
push edi
push 0
push 4
mov ecx, esi
call dword [edx + 0x134]
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x14]
push eax
mov ecx, edi
call fcn.0065be80
test eax, eax
jne 0x489600
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 0xb8]
mov eax, dword [ebx + 4]
push eax
mov ecx, edi
call fcn.0065bf10
test eax, eax
mov ecx, ebp
push 2
je 0x489800
mov edx, dword [ebp]
call dword [edx + 0xb8]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x13c]
mov ecx, dword [edi + 0x64]
push ecx
mov ecx, dword [0x912e94]
call fcn.004668b0
test eax, eax
je 0x4895d9
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x4895d9
mov edx, dword [ecx]
call dword [edx + 0x50]
test eax, eax
je 0x4895d9
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
push 0xffffffffffffffff
push 1
push ecx
mov ecx, eax
call dword [edx + 0x2c0]
test eax, eax
jne 0x4895d9
mov edx, dword [esi]
push 3
mov ecx, esi
call dword [edx + 0x13c]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xc4]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 0x10]
test eax, eax
je 0x489600
push 1
push 0x78f490
push eax
push 1
mov ecx, ebp
call fcn.00511520
push 0
mov ecx, ebp
call fcn.00510f30
test eax, eax
je 0x48961b
mov ecx, dword [ebx + 4]
push edi
push 2
push ecx
mov ecx, eax
call fcn.006c3eb0
mov edx, dword [ebx + 4]
mov dword [ebp + 0x11c], edx
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
mov eax, dword [0x914298]
add ecx, 1
add ebx, 0x1f4
cmp ecx, dword [eax + 0x8bdb4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], ebx
jb 0x489380
mov ebp, dword [esp + 0x14]
xor ebx, ebx
test edi, edi
jbe 0x48969a
mov eax, dword [esi]
push 0
push 0x85d210
push 0x85b460
push 0
lea ecx, [ebx + 0x2710]
push ecx
mov ecx, esi
call dword [eax + 0x8c]
push eax
call fcn.0071f44c
add esp, 0x14
test eax, eax
je 0x48969a
mov ecx, eax
call fcn.00510de0
add ebx, 1
cmp ebx, edi
jb 0x489660
mov edx, dword [esi]
push 0
push 0x85b5f4
push 0x85b460
push 0
push 0x2328
mov ecx, esi
call dword [edx + 0x8c]
push eax
call fcn.0071f44c
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x489706
push 1
mov ecx, ebp
call fcn.00657680
mov ecx, dword [0x894420]
push eax
push str.REALM
push 0
push 0
push str.buildingsui_wndavailtxt
call fcn.00414e70
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00417b30
mov edx, dword [ebx]
add esp, 0x14
lea eax, [esp + 0x68]
push eax
mov ecx, ebx
call dword [edx + 0x148]
mov edx, dword [esi]
push 0
push 0x85b5f4
push 0x85b460
push 0
push 0xa
mov ecx, esi
call dword [edx + 0x8c]
push eax
call fcn.0071f44c
add esp, 0x14
push 0
push 0x85b5f4
push 0x85b460
mov ebx, eax
mov eax, dword [esi]
push 0
push 0xb
mov ecx, esi
mov dword [esp + 0x5c], ebx
call dword [eax + 0x8c]
push eax
call fcn.0071f44c
mov edx, dword [esi]
add esp, 0x14
push 0
push 0x85b5f4
push 0x85b460
push 0
mov ebp, eax
push 0xc
mov ecx, esi
mov dword [esp + 0x60], ebp
call dword [edx + 0x8c]
push eax
call fcn.0071f44c
add esp, 0x14
test ebx, ebx
mov dword [esp + 0x50], eax
je 0x4897b3
test ebp, ebp
je 0x4897b3
test eax, eax
je 0x4897b3
push eax
push ebp
push ebx
push 3
call fcn.00422b50
mov esi, dword [esi + 0xb4]
add esp, 0x10
cmp esi, 3
jae 0x4897b3
mov ecx, dword [esp + esi*4 + 0x48]
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0x164]
mov dword [esp + 0x1c], vtable.CBArray_unsigned_long_int_.0
mov eax, dword [esp + 0x20]
test eax, eax
mov byte [esp + 0x270], 1
je 0x4897d4
push eax
call fcn.0040fa80
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x270], 0
call fcn.00412de0
mov ecx, dword [esp + 0x268]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x264
ret 4
mov eax, dword [ebp]
call dword [eax + 0xb4]
xor edi, edi
mov dword [esp + 0x2c], edi
mov ecx, dword [ebx + 4]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004890b0
mov eax, dword [esp + 0x34]
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x489895
lea esp, [esp]
mov eax, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x20]
call dword [eax + 0x14]
mov eax, dword [eax]
mov edx, dword [0x914298]
mov ecx, eax
shl ecx, 6
sub ecx, eax
add ecx, ecx
sub ecx, eax
cmp dword [edx + ecx*4 + 0xedb4], 0
lea eax, [edx + ecx*4 + 0xedb4]
jne 0x489871
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x14]
push eax
call fcn.0065be80
test eax, eax
je 0x48988f
add edi, 1
cmp edi, dword [esp + 0x10]
jb 0x489830
mov edx, dword [esi]
push 2
mov ecx, esi
call dword [edx + 0x13c]
mov edi, dword [esp + 0x14]
jmp 0x4895d9
cmp edi, dword [esp + 0x10]
jb 0x4898aa
mov edx, dword [esi]
push 2
mov ecx, esi
call dword [edx + 0x13c]
mov edi, dword [esp + 0x14]
jmp 0x4895d9
mov eax, dword [esi]
push 4
mov ecx, esi
call dword [eax + 0x13c]
mov edi, dword [esp + 0x14]
jmp 0x489600