Function at 0x403920
Capabilities:
Get geographical location
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x589162
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov esi, dword [esp + 0xbc]
mov eax, dword [esi + 0x94]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push eax
call edx
xor edi, edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], 0xa
xor ecx, ecx
mov dword [esp + 0xb4], edi
mov dword [esp + 0x20], ecx
mov byte [esp + 0xb4], 1
mov eax, dword [esi + 0x5c]
cmp eax, edi
je 0x403a2b
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x403a27
mov dword [esp + 0x18], edi
push edi
mov byte [esp + 0xb8], 2
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x403a0f
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x64]
call fcn.004094a0
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4039f7
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x1c]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x4039d5
mov byte [esp + 0xb4], 1
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x403a27
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x20]
cmp ecx, edi
mov byte [esp + 0xb4], 0
je 0x403a3f
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov ebx, dword [esp + 0x60]
cmp ebx, edi
je 0x403b4d
jmp 0x403a50
mov edx, dword [esp + 0xbc]
mov eax, dword [edx + 0x94]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
test eax, eax
jne 0x403b4d
cmp ebx, edi
setne al
cmp eax, edi
je 0x403bce
mov eax, ebx
mov ecx, dword [eax + 8]
mov ebx, dword [ebx]
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x18], eax
je 0x403aa0
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x5e8cb8
push ecx
call eax
mov eax, dword [esp + 0x18]
cmp eax, edi
mov byte [esp + 0xb4], 3
jne 0x403ab9
mov byte [esp + 0xb4], 0
jmp 0x403b45
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
xor esi, esi
call edx
mov ebp, eax
cmp ebp, edi
jbe 0x403b2d
lea esp, [esp]
mov dword [esp + 0x1c], edi
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0xb8], 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x403b1b
mov ecx, dword [esp + 0xbc]
mov eax, dword [ecx + 0x94]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
push eax
call edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esi, 1
cmp esi, ebp
jb 0x403ad0
mov byte [esp + 0xb4], 0
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x403b45
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp ebx, edi
jne 0x403a50
mov eax, dword [esp + 0x60]
cmp eax, edi
mov dword [esp + 0x20], eax
je 0x403d96
lea ecx, [ecx]
mov eax, dword [esp + 0xbc]
mov eax, dword [eax + 0x94]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
test eax, eax
jne 0x403d94
mov ecx, dword [esp + 0x20]
test ecx, ecx
setne al
test eax, eax
je 0x403bce
mov eax, ecx
mov eax, dword [eax + 8]
test eax, eax
mov ecx, dword [ecx]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], 0
je 0x403bb2
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x18]
push ecx
push 0x5e8cc8
push eax
call edx
mov byte [esp + 0xb4], 5
cmp dword [esp + 0x18], 0
jne 0x403bd8
mov byte [esp + 0xb4], 0
jmp 0x403d89
push 0x80004005
call fcn.0040a460
push 3
lea eax, [esp + 0x2c]
push eax
push 0x59
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push ecx
mov ecx, esp
lea edx, [esp + 0x2c]
mov dword [esp + 0x38], esp
push edx
push ecx
call fcn.00560cf0
lea eax, [esp + 0x28]
add esp, 8
push eax
call fcn.0042a6f0
add esp, 8
mov byte [esp + 0xb4], 6
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 3
jge 0x403c30
push 3
push 0x5e8540
lea ecx, [esp + 0x24]
call fcn.004089b0
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push 0
push eax
mov eax, dword [edx + 0xc]
call eax
mov edi, eax
mov ebx, 1
cmp edi, ebx
jb 0x403d49
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push ebx
push 0
push eax
call edx
mov ebp, eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x8c]
push edx
mov word [esp + 0x90], 0x17
mov ecx, dword [eax]
push ebp
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
je 0x403d3e
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jl 0x403e1d
mov cl, byte [eax]
mov byte [esp + 0x2c], cl
cmp dword [eax - 0xc], 1
jl 0x403e1d
mov dl, byte [eax + 1]
mov byte [esp + 0x2d], dl
cmp dword [eax - 0xc], 2
jl 0x403e1d
mov al, byte [eax + 2]
mov cx, word [0x5e89cc]
mov dl, byte [0x5e89ce]
xor esi, esi
mov byte [esp + 0x2e], al
mov word [esp + 0x24], cx
mov byte [esp + 0x26], dl
mov dword [esp + 0x30], esi
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0xb8], 7
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push ebp
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ebp, eax
test ebp, ebp
je 0x403d09
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, ebp
mov dword [esp + 0x30], esi
mov ecx, dword [esp + 0xbc]
mov eax, dword [ecx + 0x94]
mov ecx, dword [esp + 0x97]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push esi
push ecx
mov ecx, dword [esp + 0x9b]
push ecx
push eax
call edx
push esi
mov byte [esp + 0xb8], 6
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
add ebx, 1
cmp ebx, edi
jbe 0x403c4d
mov byte [esp + 0xb4], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xb4], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x403d89
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x20], 0
jne 0x403b60
xor edi, edi
mov esi, dword [esp + 0x60]
cmp esi, edi
je 0x403f87
jmp 0x403db0
mov eax, dword [esp + 0xbc]
mov eax, dword [eax + 0x94]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
test eax, eax
jne 0x403f87
cmp esi, edi
setne al
cmp eax, edi
je 0x403bce
mov eax, esi
mov eax, dword [eax + 8]
mov esi, dword [esi]
xor ecx, ecx
cmp eax, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ecx
je 0x403e04
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x59da2c
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [esp + 0x18]
cmp ecx, edi
mov byte [esp + 0xb4], 8
jne 0x403e27
mov byte [esp + 0xb4], 0
jmp 0x403f7f
push 0x80070057
call fcn.0040a460
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edi
mov edx, dword [ecx]
push eax
push ecx
mov ecx, dword [edx + 0x20]
call ecx
test eax, eax
jl 0x403f67
mov ebx, 1
cmp dword [esp + 0x24], ebx
jl 0x403f67
nop
fldz
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
fstp qword [esp + 0x34]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
push ecx
push ebx
push eax
call edx
test eax, eax
jl 0x403f5a
call fcn.0045881f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x403bce
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push ebx
lea ecx, [esp + 0x20]
push str.Chapter__d
push ecx
mov byte [esp + 0xc0], 9
call fcn.00409fe0
add esp, 0xc
mov dword [esp + 0x28], edi
mov byte [esp + 0xb4], 0xa
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
lea ecx, [esp + 0x28]
push ecx
push ebx
push eax
call edx
test eax, eax
jne 0x403efa
mov esi, dword [esp + 0x28]
cmp esi, edi
je 0x403eef
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403ee0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.0040a080
mov eax, dword [esp + 0xbc]
fld qword [esp + 0x34]
mov esi, dword [eax + 0x94]
fmul qword [0x5edbf0]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esi]
push ebp
call fcn.00472696
mov ecx, dword [edi + 0x18]
push edx
push eax
push esi
call ecx
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x10]
mov byte [esp + 0xb4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
xor edi, edi
add ebx, 1
cmp ebx, dword [esp + 0x24]
jle 0x403e50
mov byte [esp + 0xb4], 0
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x403f7f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, edi
jne 0x403db0
mov eax, dword [esp + 0x60]
cmp eax, edi
mov dword [esp + 0x20], eax
je 0x404396
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ecx]
mov eax, dword [esp + 0xbc]
mov eax, dword [eax + 0x94]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
test eax, eax
jne 0x404396
mov eax, dword [esp + 0x20]
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x403bce
mov esi, dword [eax + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x8c]
push esi
push edx
mov dword [esp + 0x28], ecx
call fcn.0055ee20
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x84], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x88], edx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x84]
push 0x5ebce8
push eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
call fcn.00409f40
add esp, 0x10
test eax, eax
je 0x40438c
xor eax, eax
mov dword [esp + 0x24], eax
cmp esi, ebx
mov byte [esp + 0xb4], 0xb
je 0x404378
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
lea edx, [esp + 0x24]
push edx
push esi
call eax
test eax, eax
jl 0x404374
mov dword [esp + 0x18], ebx
push ebx
mov byte [esp + 0xb8], 0xc
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x40435c
mov ecx, dword [esp + 0xbc]
mov eax, dword [ecx + 0x94]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jne 0x40435c
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x28], ebx
je 0x4040ba
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x5e8cd8
push eax
mov eax, dword [ecx]
call eax
mov byte [esp + 0xb4], 0xd
cmp dword [esp + 0x28], ebx
je 0x404312
mov esi, 1
mov dword [esp + 0x30], esi
call fcn.0045881f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403bce
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0xb8], 0xf
call edi
push esi
lea eax, [esp + 0x20]
push str.CHAPTER_02d
push eax
call fcn.00409fe0
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
mov ecx, dword [eax]
add esp, 0xc
push 0
lea edx, [esp + 0x48]
push edx
push ebp
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
lea ecx, [esp + 0x44]
push ecx
jne 0x4042ec
lea edx, [esp + 0x58]
push edx
call fcn.00408e60
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x64]
push ecx
push edx
lea ecx, [esp + 0x68]
push ecx
push edx
lea ecx, [esp + 0x90]
push ecx
push str._d_c_d_c_d_c_d
push eax
call fcn.00473dbb
add esp, 0x24
cmp eax, 7
mov eax, dword [esp + 0x54]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4041a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4042e7
call fcn.0045881f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403bce
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
push esi
lea ecx, [esp + 0x44]
push str.Chapter__d
push ecx
mov byte [esp + 0xc0], 0x10
call fcn.00409fe0
add esp, 0xc
lea edx, [esp + 0x44]
push edx
call edi
push 4
push str.NAME
lea ecx, [esp + 0x24]
call fcn.00408ab0
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x48]
push edx
push ebp
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x404231
lea ecx, [esp + 0x44]
push ecx
lea edi, [esp + 0x44]
call fcn.00408f40
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xbc]
mov esi, dword [edx + 0x94]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x40]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x5c]
mov ecx, eax
mov ebx, dword [esi]
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
imul eax, eax, 0x3e8
add eax, dword [esp + 0x34]
push edi
push 0
cdq
push 0x2710
push edx
push eax
call fcn.00473670
push edx
push eax
mov eax, dword [ebx + 0x18]
push esi
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0xb4], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x44]
push ecx
call edi
lea eax, [ebp - 0x10]
mov byte [esp + 0xb4], 0xd
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4042db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x30]
add esi, 1
jmp 0x4040d1
lea ecx, [esp + 0x44]
push ecx
call edi
lea eax, [ebp - 0x10]
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [esp + 0xb4], 0xd
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404312
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xb4], 0xc
mov eax, dword [esp + 0x28]
xor ebx, ebx
cmp eax, ebx
je 0x40432c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x404340
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x1c]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x404080
mov byte [esp + 0xb4], 0xb
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x404374
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov byte [esp + 0xb4], 0
je 0x40438c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x20], ebx
jne 0x403fa0
mov eax, dword [esp + 0xbc]
mov eax, dword [eax + 0x94]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push eax
call edx
lea ecx, [esp + 0x60]
call fcn.004096d0
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 4