Function at 0x4baa80
Capabilities:
Get geographical location

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x69e7a1
push eax
mov dword fs:[0], esp
sub esp, 0x2e8
push ebx
push esi
push edi
push 0x40
push 0x80
mov esi, ecx
push str.wm_translucency.tga
push str.data_interface
lea ecx, [esi + 0xbb0]
call fcn.00533680
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x3f800000
push ebx
push 0x3f400000
push 0x3f000000
push 0x3f800000
push ebx
push 0x3f000000
push 0x3e800000
push 0x3f800000
push ebx
push 0x3e800000
push ebx
mov eax, dword [esi + 8]
push 1
mov ecx, dword [esi + 4]
push 0x20
push 0x80
push str.wm_button.tga
push ebx
push 0x16
push 0x16
push 0x20
push 0x20
push 1
push 0x1d2
push eax
push ecx
lea ecx, [esi + 0xbc0]
call fcn.00512a00
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x3f800000
push ebx
push 0x3f400000
push 0x3f000000
push 0x3f800000
push ebx
push 0x3f000000
push 0x3e800000
push 0x3f800000
push ebx
push 0x3e800000
push ebx
push 1
push 0x20
push 0x80
push str.wm_button_m.tga
push ebx
push 0x16
push 0x16
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push 0x20
push 0x20
push 1
push 0x1ea
push edx
push eax
lea ecx, [esi + 0x1094]
call fcn.00512a00
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x3f800000
push ebx
push 0x3f400000
push 0x3f000000
push 0x3f800000
push ebx
push 0x3f000000
push 0x3e800000
push 0x3f800000
push ebx
push 0x3e800000
push ebx
mov ecx, dword [esi + 8]
push 1
mov edx, dword [esi + 4]
push 0x20
push 0x80
push str.wm_button_w.tga
push ebx
push 0x16
push 0x16
push 0x20
push 0x20
push 1
push 0x1ea
push ecx
push edx
lea ecx, [esi + 0x1568]
call fcn.00512a00
push 0x200
push 0x200
push str.wm_map.tga
push str.data_interface
lea ecx, [esi + 0x1a44]
call fcn.00533680
push 0x200
push 0x200
push str.wm_letter.tga
push str.data_interface
lea ecx, [esi + 0x1a54]
call fcn.00533680
push 0x20
push 0x200
push str.wm_warning.tga
push str.data_interface
lea ecx, [esi + 0x1b80]
mov byte [esi + 0x1b7c], bl
call fcn.00533680
push 0x6a92a0
push str.data_WorldMap.cfg
mov dword [esi + 0x1a3c], 0x13
call fcn.0040be40
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4bb69c
mov eax, dword [0x706378]
mov eax, dword [eax + 0x28]
push ebp
push eax
mov dword [esp + 0x34], eax
call fcn.005bb3af
mov ecx, dword [esp + 0x34]
push edi
push ecx
mov ebp, eax
push 1
push ebp
call fcn.0040bb50
push edi
call fcn.0040bb70
add esp, 0x18
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0x6aee6c
call fcn.004b8b50
mov dword [esp + 0x24], eax
mov byte [eax + 0x35], 1
mov eax, dword [esp + 0x24]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x24]
mov dword [eax], eax
mov eax, dword [esp + 0x24]
mov dword [eax + 8], eax
mov dword [esp + 0x28], ebx
mov byte [esp + 0x2c], bl
mov edx, dword [esp + 0x30]
push ebx
push edx
push ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0x30c], ebx
call fcn.005ac660
cmp ebp, ebx
je 0x4bacf8
push ebp
call fcn.005ba86d
add esp, 4
push 5
mov ebp, 0xf
push str.count
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00405710
push 8
push str.WorldMap
lea ecx, [esp + 0x3c]
mov byte [esp + 0x308], 1
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00405710
push ebx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x30c], 2
call fcn.005acab0
mov dword [esi + 0x1a3c], eax
mov eax, dword [esp + 0x4c]
mov edi, 0x10
cmp eax, edi
jb 0x4bad79
mov edx, dword [esp + 0x38]
push edx
call fcn.005b9e6d
add esp, 4
cmp dword [esp + 0x68], edi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x300], bl
jb 0x4bad9f
mov eax, dword [esp + 0x54]
push eax
call fcn.005b9e6d
add esp, 4
mov ecx, dword [esi + 0x1a3c]
shl ecx, 2
push ecx
call fcn.005bb3af
add esp, 4
cmp eax, ebx
mov dword [esi + 0x1b90], eax
je 0x4bb5cb
mov eax, dword [esi + 0x1a3c]
xor edi, edi
cmp eax, ebx
jle 0x4bb5cb
jmp 0x4badd6
mov ebp, 0xf
push edi
lea edx, [esp + 0x14]
push 0x6a9858
push edx
call fcn.005baa1d
push 0x40
call fcn.005b9e72
add esp, 0x10
cmp eax, ebx
je 0x4bae0e
mov dword [eax + 0x24], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
jmp 0x4bae10
xor eax, eax
mov ecx, dword [esi + 0x1b90]
push 7
mov dword [ecx + edi*4], eax
push str.Country
lea ecx, [esp + 0x100]
mov dword [esp + 0x118], ebp
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
call fcn.00405710
lea eax, [esp + 0x10]
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x300], 3
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea ebp, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4bae60
sub eax, ebp
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x3c]
call fcn.00405710
push ebx
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x30c], 4
call fcn.005acab0
mov edx, dword [esi + 0x1b90]
mov ecx, dword [edx + edi*4]
mov dword [ecx], eax
cmp dword [esp + 0x4c], 0x10
jb 0x4baeb6
mov edx, dword [esp + 0x38]
push edx
call fcn.005b9e6d
add esp, 4
cmp dword [esp + 0x110], 0x10
mov ebp, 0xf
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x300], bl
jb 0x4baee8
mov eax, dword [esp + 0xfc]
push eax
call fcn.005b9e6d
add esp, 4
push 6
push str.MapNum
lea ecx, [esp + 0x1a8]
mov dword [esp + 0x118], ebp
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
mov dword [esp + 0x1c0], ebp
mov dword [esp + 0x1bc], ebx
mov byte [esp + 0x1ac], bl
call fcn.00405710
lea eax, [esp + 0x10]
mov byte [esp + 0x300], 5
mov dword [esp + 0x1d4], ebp
mov dword [esp + 0x1d0], ebx
mov byte [esp + 0x1c0], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4baf50
sub eax, edx
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c4]
call fcn.00405710
push 0xffffffffffffffff
lea edx, [esp + 0x1a4]
push edx
lea eax, [esp + 0x1c4]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x30c], 6
call fcn.005acab0
mov ecx, dword [esi + 0x1b90]
mov edx, dword [ecx + edi*4]
mov dword [edx + 4], eax
cmp dword [esp + 0x1d4], 0x10
jb 0x4bafb4
mov eax, dword [esp + 0x1c0]
push eax
call fcn.005b9e6d
add esp, 4
cmp dword [esp + 0x1b8], 0x10
mov dword [esp + 0x1d4], ebp
mov dword [esp + 0x1d0], ebx
mov byte [esp + 0x1c0], bl
mov byte [esp + 0x300], bl
jb 0x4bafea
mov ecx, dword [esp + 0x1a4]
push ecx
call fcn.005b9e6d
add esp, 4
push 0xa
push str.Click_left
lea ecx, [esp + 0x170]
mov dword [esp + 0x1c0], ebp
mov dword [esp + 0x1bc], ebx
mov byte [esp + 0x1ac], bl
mov dword [esp + 0x188], ebp
mov dword [esp + 0x184], ebx
mov byte [esp + 0x174], bl
call fcn.00405710
lea eax, [esp + 0x10]
mov byte [esp + 0x300], 7
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
lea edx, [eax + 1]
jmp 0x4bb050
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4bb050
sub eax, edx
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0xc8]
call fcn.00405710
push ebx
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x30c], 8
call fcn.005acab0
mov edx, dword [esi + 0x1b90]
mov ecx, dword [edx + edi*4]
mov dword [ecx + 8], eax
cmp dword [esp + 0xd8], 0x10
jb 0x4bb0b3
mov edx, dword [esp + 0xc4]
push edx
call fcn.005b9e6d
add esp, 4
cmp dword [esp + 0x180], 0x10
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
mov byte [esp + 0x300], bl
jb 0x4bb0e9
mov eax, dword [esp + 0x16c]
push eax
call fcn.005b9e6d
add esp, 4
push 9
push str.Click_top
lea ecx, [esp + 0x1e0]
mov dword [esp + 0x188], ebp
mov dword [esp + 0x184], ebx
mov byte [esp + 0x174], bl
mov dword [esp + 0x1f8], ebp
mov dword [esp + 0x1f4], ebx
mov byte [esp + 0x1e4], bl
call fcn.00405710
lea eax, [esp + 0x10]
mov byte [esp + 0x300], 9
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4bb147
sub eax, edx
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x74]
call fcn.00405710
push ebx
lea edx, [esp + 0x1dc]
push edx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x30c], 0xa
call fcn.005acab0
mov ecx, dword [esi + 0x1b90]
mov edx, dword [ecx + edi*4]
mov dword [edx + 0xc], eax
cmp dword [esp + 0x84], 0x10
jb 0x4bb1a1
mov eax, dword [esp + 0x70]
push eax
call fcn.005b9e6d
add esp, 4
cmp dword [esp + 0x1f0], 0x10
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov byte [esp + 0x300], bl
jb 0x4bb1d4
mov ecx, dword [esp + 0x1dc]
push ecx
call fcn.005b9e6d
add esp, 4
push 0xb
push str.Click_right
lea ecx, [esp + 0x90]
mov dword [esp + 0x1f8], ebp
mov dword [esp + 0x1f4], ebx
mov byte [esp + 0x1e4], bl
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
call fcn.00405710
lea eax, [esp + 0x10]
mov byte [esp + 0x300], 0xb
mov dword [esp + 0x148], ebp
mov dword [esp + 0x144], ebx
mov byte [esp + 0x134], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4bb235
sub eax, edx
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x138]
call fcn.00405710
push ebx
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x138]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x30c], 0xc
call fcn.005acab0
mov edx, dword [esi + 0x1b90]
mov ecx, dword [edx + edi*4]
mov dword [ecx + 0x10], eax
cmp dword [esp + 0x148], 0x10
jb 0x4bb298
mov edx, dword [esp + 0x134]
push edx
call fcn.005b9e6d
add esp, 4
cmp dword [esp + 0xa0], 0x10
mov dword [esp + 0x148], ebp
mov dword [esp + 0x144], ebx
mov byte [esp + 0x134], bl
mov byte [esp + 0x300], bl
jb 0x4bb2ce
mov eax, dword [esp + 0x8c]
push eax
call fcn.005b9e6d
add esp, 4
push 0xc
push str.Click_bottom
lea ecx, [esp + 0xe4]
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
mov dword [esp + 0xfc], ebp
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
call fcn.00405710
lea eax, [esp + 0x10]
mov byte [esp + 0x300], 0xd
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4bb330
sub eax, edx
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xac]
call fcn.00405710
push ebx
lea edx, [esp + 0xe0]
push edx
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x30c], 0xe
call fcn.005acab0
mov ecx, dword [esi + 0x1b90]
mov edx, dword [ecx + edi*4]
mov dword [edx + 0x14], eax
cmp dword [esp + 0xbc], 0x10
jb 0x4bb393
mov eax, dword [esp + 0xa8]
push eax
call fcn.005b9e6d
add esp, 4
cmp dword [esp + 0xf4], 0x10
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
mov byte [esp + 0x300], bl
jb 0x4bb3c9
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.005b9e6d
add esp, 4
push 8
push str.ImgPos_x
lea ecx, [esp + 0x154]
mov dword [esp + 0xfc], ebp
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
mov dword [esp + 0x16c], ebp
mov dword [esp + 0x168], ebx
mov byte [esp + 0x158], bl
call fcn.00405710
lea eax, [esp + 0x10]
mov byte [esp + 0x300], 0xf
mov dword [esp + 0x12c], ebp
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4bb430
sub eax, edx
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x11c]
call fcn.00405710
push ebx
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x11c]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x30c], 0x10
call fcn.005acab0
mov edx, dword [esi + 0x1b90]
mov ecx, dword [edx + edi*4]
mov dword [ecx + 0x18], eax
cmp dword [esp + 0x12c], 0x10
jb 0x4bb493
mov edx, dword [esp + 0x118]
push edx
call fcn.005b9e6d
add esp, 4
cmp dword [esp + 0x164], 0x10
mov dword [esp + 0x12c], ebp
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], bl
mov byte [esp + 0x300], bl
jb 0x4bb4c9
mov eax, dword [esp + 0x150]
push eax
call fcn.005b9e6d
add esp, 4
push 8
push str.ImgPos_y
lea ecx, [esp + 0x58]
mov dword [esp + 0x16c], ebp
mov dword [esp + 0x168], ebx
mov byte [esp + 0x158], bl
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00405710
lea eax, [esp + 0x10]
mov byte [esp + 0x300], 0x11
mov dword [esp + 0x19c], ebp
mov dword [esp + 0x198], ebx
mov byte [esp + 0x188], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4bb520
sub eax, edx
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x18c]
call fcn.00405710
push ebx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x30c], 0x12
call fcn.005acab0
mov ecx, dword [esi + 0x1b90]
mov edx, dword [ecx + edi*4]
mov dword [edx + 0x1c], eax
cmp dword [esp + 0x19c], 0x10
jb 0x4bb580
mov eax, dword [esp + 0x188]
push eax
call fcn.005b9e6d
add esp, 4
cmp dword [esp + 0x68], 0x10
mov dword [esp + 0x19c], ebp
mov dword [esp + 0x198], ebx
mov byte [esp + 0x188], bl
mov byte [esp + 0x300], bl
jb 0x4bb5b0
mov ecx, dword [esp + 0x54]
push ecx
call fcn.005b9e6d
add esp, 4
mov eax, dword [esi + 0x1a3c]
inc edi
cmp edi, eax
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jl 0x4badd1
lea ecx, [esp + 0x1c]
call fcn.005ac5a0
mov eax, dword [esi + 0x1a3c]
xor edi, edi
cmp eax, ebx
pop ebp
jle 0x4bb688
jmp 0x4bb5f0
mov edx, dword [esi + 0x1b90]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x4bb679
push eax
lea ecx, [esp + 0x1f4]
push str.wm_e_d.tga
push ecx
call fcn.005baa1d
mov eax, dword [esi + 0x1b90]
mov ecx, dword [eax + edi*4]
add esp, 0xc
push ebx
push ebx
lea edx, [esp + 0x1f8]
push edx
push str.data_interface
add ecx, 0x20
call fcn.00533680
mov ecx, dword [esi + 0x1b90]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x1f4]
push str.wm_f_d.tga
push ecx
call fcn.005baa1d
mov eax, dword [esi + 0x1b90]
mov ecx, dword [eax + edi*4]
add esp, 0xc
push ebx
push ebx
lea edx, [esp + 0x1f8]
push edx
push str.data_interface
add ecx, 0x30
call fcn.00533680
mov eax, dword [esi + 0x1a3c]
inc edi
cmp edi, eax
jl 0x4bb5f0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2fc], 0xffffffff
call fcn.004ba9a0
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2f4
ret