Function at 0x4c3990
Capabilities:
Get geographical location

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6b0b81
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 + 0xdbc]
call fcn.005497a0
xor ebx, ebx
push 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 + 0xdcc]
call fcn.00528830
push 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
push 1
push 0x20
push 0x80
push str.wm_button_m.tga
push ebx
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push 0x16
push 0x16
push 0x20
push 0x20
push 1
push 0x1ea
push edx
push eax
lea ecx, [esi + 0x13a4]
call fcn.00528830
push 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 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 + 0x197c]
call fcn.00528830
push 0x200
push 0x200
push str.wm_map.tga
push str.data_interface
lea ecx, [esi + 0x1f5c]
call fcn.005497a0
push 0x200
push 0x200
push str.wm_letter.tga
push str.data_interface
lea ecx, [esi + 0x1f6c]
call fcn.005497a0
push 0x20
push 0x200
push str.wm_warning.tga
push str.data_interface
lea ecx, [esi + 0x2098]
mov byte [esi + 0x2094], bl
call fcn.005497a0
push 0x6bc484
push str.data_WorldMap.cfg
mov dword [esi + 0x1f54], 0x13
call fcn.0040d2e0
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4c45ac
mov eax, dword [0x719e80]
mov eax, dword [eax + 0x28]
push ebp
push eax
mov dword [esp + 0x34], eax
call fcn.005cde20
mov ecx, dword [esp + 0x34]
push edi
push ecx
mov ebp, eax
push 1
push ebp
call fcn.0040d020
push edi
call fcn.005a26c0
add esp, 0x18
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0x6c2690
call fcn.004c17b0
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.005c0110
cmp ebp, ebx
je 0x4c3c0b
push ebp
call fcn.005cdc59
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.005c0560
mov dword [esi + 0x1f54], eax
mov eax, dword [esp + 0x4c]
mov edi, 0x10
cmp eax, edi
jb 0x4c3c8c
mov edx, dword [esp + 0x38]
push edx
call fcn.005cc620
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 0x4c3cb2
mov eax, dword [esp + 0x54]
push eax
call fcn.005cc620
add esp, 4
mov ecx, dword [esi + 0x1f54]
shl ecx, 2
push ecx
call fcn.005cde20
add esp, 4
cmp eax, ebx
mov dword [esi + 0x20a8], eax
je 0x4c44db
mov eax, dword [esi + 0x1f54]
xor edi, edi
cmp eax, ebx
jle 0x4c44db
jmp 0x4c3cf0
mov ebp, 0xf
lea esp, [esp]
push edi
lea edx, [esp + 0x14]
push 0x6bcafc
push edx
call fcn.005cd489
push 0x40
call fcn.005cc96d
add esp, 0x10
cmp eax, ebx
je 0x4c3d28
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 0x4c3d2a
xor eax, eax
mov ecx, dword [esi + 0x20a8]
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]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c3d76
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.005c0560
mov edx, dword [esi + 0x20a8]
mov ecx, dword [edx + edi*4]
mov dword [ecx], eax
cmp dword [esp + 0x4c], 0x10
jb 0x4c3dcc
mov edx, dword [esp + 0x38]
push edx
call fcn.005cc620
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 0x4c3dfe
mov eax, dword [esp + 0xfc]
push eax
call fcn.005cc620
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]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c3e60
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.005c0560
mov ecx, dword [esi + 0x20a8]
mov edx, dword [ecx + edi*4]
mov dword [edx + 4], eax
cmp dword [esp + 0x1d4], 0x10
jb 0x4c3ec4
mov eax, dword [esp + 0x1c0]
push eax
call fcn.005cc620
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 0x4c3efa
mov ecx, dword [esp + 0x1a4]
push ecx
call fcn.005cc620
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 0x4c3f60
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c3f60
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.005c0560
mov edx, dword [esi + 0x20a8]
mov ecx, dword [edx + edi*4]
mov dword [ecx + 8], eax
cmp dword [esp + 0xd8], 0x10
jb 0x4c3fc3
mov edx, dword [esp + 0xc4]
push edx
call fcn.005cc620
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 0x4c3ff9
mov eax, dword [esp + 0x16c]
push eax
call fcn.005cc620
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 0x4c4057
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.005c0560
mov ecx, dword [esi + 0x20a8]
mov edx, dword [ecx + edi*4]
mov dword [edx + 0xc], eax
cmp dword [esp + 0x84], 0x10
jb 0x4c40b1
mov eax, dword [esp + 0x70]
push eax
call fcn.005cc620
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 0x4c40e4
mov ecx, dword [esp + 0x1dc]
push ecx
call fcn.005cc620
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 0x4c4145
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.005c0560
mov edx, dword [esi + 0x20a8]
mov ecx, dword [edx + edi*4]
mov dword [ecx + 0x10], eax
cmp dword [esp + 0x148], 0x10
jb 0x4c41a8
mov edx, dword [esp + 0x134]
push edx
call fcn.005cc620
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 0x4c41de
mov eax, dword [esp + 0x8c]
push eax
call fcn.005cc620
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 0x4c4240
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.005c0560
mov ecx, dword [esi + 0x20a8]
mov edx, dword [ecx + edi*4]
mov dword [edx + 0x14], eax
cmp dword [esp + 0xbc], 0x10
jb 0x4c42a3
mov eax, dword [esp + 0xa8]
push eax
call fcn.005cc620
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 0x4c42d9
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.005cc620
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 0x4c4340
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.005c0560
mov edx, dword [esi + 0x20a8]
mov ecx, dword [edx + edi*4]
mov dword [ecx + 0x18], eax
cmp dword [esp + 0x12c], 0x10
jb 0x4c43a3
mov edx, dword [esp + 0x118]
push edx
call fcn.005cc620
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 0x4c43d9
mov eax, dword [esp + 0x150]
push eax
call fcn.005cc620
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 0x4c4430
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.005c0560
mov ecx, dword [esi + 0x20a8]
mov edx, dword [ecx + edi*4]
mov dword [edx + 0x1c], eax
cmp dword [esp + 0x19c], 0x10
jb 0x4c4490
mov eax, dword [esp + 0x188]
push eax
call fcn.005cc620
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 0x4c44c0
mov ecx, dword [esp + 0x54]
push ecx
call fcn.005cc620
add esp, 4
mov eax, dword [esi + 0x1f54]
inc edi
cmp edi, eax
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jl 0x4c3ce4
lea ecx, [esp + 0x1c]
call fcn.005c0050
mov eax, dword [esi + 0x1f54]
xor edi, edi
cmp eax, ebx
pop ebp
jle 0x4c4598
jmp 0x4c4500
mov edx, dword [esi + 0x20a8]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x4c4589
push eax
lea ecx, [esp + 0x1f4]
push str.wm_e_d.tga
push ecx
call fcn.005cd489
mov eax, dword [esi + 0x20a8]
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.005497a0
mov ecx, dword [esi + 0x20a8]
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.005cd489
mov eax, dword [esi + 0x20a8]
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.005497a0
mov eax, dword [esi + 0x1f54]
inc edi
cmp edi, eax
jl 0x4c4500
lea ecx, [esp + 0x18]
mov dword [esp + 0x2fc], 0xffffffff
call fcn.004c38b0
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2f4
ret