Function at 0x4a27d0
Capabilities:
Get geographical location
Get keyboard layout
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x174
mov eax, dword [0x598b80]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0
mov dword [esp + 0x40], ebx
call fcn.0049afd0
add esp, 4
call fcn.00497240
mov edi, dword [ebx + 4]
cmp dword [edi + 4], 0
je 0x4a2838
mov ecx, edi
call fcn.0049aa00
test eax, eax
je 0x4a281f
cmp dword [eax + 0x8c], 0
jne 0x4a2838
and dword [edi + 0x40], 0xfffffffd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.00515f8b
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x2c]
mov ecx, dword [0x59d3cc]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x59a53c]
cmp eax, dword [ecx + 4]
jg 0x4a2fff
mov ecx, edi
call fcn.0049aac0
mov ebx, eax
mov eax, dword [0x59a540]
test ebx, ebx
jne 0x4a2875
mov ebx, eax
test ebx, ebx
jne 0x4a287f
mov ebx, str.FLTK
test eax, eax
jne 0x4a287f
mov dword [0x59a540], ebx
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a2884
push 0x64
lea eax, [esp + 0xb4]
sub ecx, edx
push eax
push ecx
push ebx
call fcn.004d4690
xor esi, esi
add esp, 0x10
cmp dword [0x59a534], esi
jle 0x4a28f6
nop dword [eax + eax]
mov eax, dword [0x59a530]
mov ecx, ebx
mov eax, dword [eax + esi*4]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a28e0
test dl, dl
je 0x4a28dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a28e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4a28c0
xor eax, eax
jmp 0x4a28e5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a2a45
inc esi
cmp esi, dword [0x59a534]
jl 0x4a28b0
xor al, al
test al, al
jne 0x4a2a12
mov eax, dword [0x5999b4]
mov ecx, edi
mov dword [esp + 0x9c], 0
mov dword [esp + 0x70], 0x30
mov dword [esp + 0x74], 0x2b
mov dword [esp + 0x78], 0x49faa0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x84], eax
call fcn.0049a7f0
test eax, eax
jne 0x4a296f
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x1c]
cmp dword [eax + 8], 0
jne 0x4a296f
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
mov ecx, edi
call fcn.0049a7e0
mov ecx, edi
call fcn.0049a7f0
push 0x7f00
push 0
mov dword [esp + 0xa4], eax
mov dword [esp + 0x90], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x98], eax
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov eax, dword [0x59a538]
cmp eax, dword [0x59a534]
jne 0x4a29f4
add eax, 5
mov dword [0x59a538], eax
shl eax, 2
push eax
push dword [0x59a530]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 8
mov dword [0x59a530], eax
push ebx
call fcn.004d40f0
mov edx, dword [0x59a534]
add esp, 4
mov ecx, dword [0x59a530]
mov dword [ecx + edx*4], eax
inc dword [0x59a534]
cmp dword [0x59998c], 0
jne 0x4a2a2b
push str.FLTK::ThreadWakeup
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x59998c], eax
cmp dword [edi + 4], 0
je 0x4a2a4c
mov ecx, edi
call fcn.0049a9d0
mov ecx, dword [eax + 0x90]
call fcn.004d3b30
jmp 0x4a2a94
mov al, 1
jmp 0x4a28f8
mov ecx, dword [edi + 0x90]
call fcn.004d36a0
test eax, eax
je 0x4a2a6e
mov ecx, dword [edi + 0x90]
cmp dword [ecx + 8], 0
jl 0x4a2a6e
call fcn.004d3b30
jmp 0x4a2a94
call fcn.004970c0
test eax, eax
je 0x4a2a7b
mov ecx, eax
jmp 0x4a2a33
call fcn.004982c0
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x54]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x98]
mov esi, eax
mov eax, dword [edi + 0x90]
mov dword [eax + 8], esi
call fcn.004982c0
mov ecx, eax
push esi
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movd xmm0, dword [edi + 0x10]
sub esp, 8
cvtdq2ps xmm0, xmm0
fstp dword [esp + 0x40]
mulss xmm0, dword [esp + 0x40]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_round]
movd xmm0, dword [edi + 0x14]
cvtdq2ps xmm0, xmm0
fstp qword [esp + 0x58]
mulss xmm0, dword [esp + 0x40]
cvttsd2si eax, qword [esp + 0x58]
cvtps2pd xmm0, xmm0
mov dword [esp + 0x50], eax
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_round]
movd xmm0, dword [edi + 0x18]
add esp, 8
cmp dword [edi + 4], 0
mov esi, 1
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x64], esi
mov dword [esp + 0x4c], 0x10100
fstp qword [esp + 0xa0]
cvttsd2si eax, qword [esp + 0xa0]
mulss xmm0, dword [esp + 0x38]
mov dword [esp + 0x40], eax
cvttss2si eax, xmm0
movd xmm0, dword [edi + 0x1c]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x60], eax
mulss xmm0, dword [esp + 0x38]
cvttss2si eax, xmm0
mov dword [esp + 0x5c], eax
je 0x4a2b87
mov ecx, edi
mov ebx, 0x46000000
call fcn.0049aa00
test eax, eax
je 0x4a2b7a
mov eax, dword [eax + 0x8c]
test eax, eax
je 0x4a2b7a
mov eax, dword [eax]
mov dword [esp + 0x38], eax
jmp 0x4a2d70
mov dword [esp + 0x38], 0
jmp 0x4a2d70
mov eax, dword [edi + 0x40]
shr eax, 3
not eax
test al, 1
je 0x4a2bd8
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
call fcn.0049a860
test eax, eax
mov eax, 0x10100
je 0x4a2bbd
test dword [edi + 0x40], 0x4000
mov ebx, 0x6cd0000
jne 0x4a2be6
mov ebx, 0x6cf0000
jmp 0x4a2be6
mov ebx, dword [edi + 0x40]
and ebx, 0x4000
neg ebx
sbb ebx, ebx
and ebx, 0xfff60000
add ebx, 0x6ca0000
jmp 0x4a2be6
mov eax, 0x10180
mov ebx, 0x86000000
mov dword [esp + 0x4c], eax
cvttsd2si ecx, qword [esp + 0x50]
push eax
push ebx
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0x58], ecx
lea eax, [esp + 0x7c]
cvttsd2si ecx, qword [esp + 0xb4]
push eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x58]
call fcn.004a19f0
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x50]
lea eax, [ecx + edx]
test eax, eax
je 0x4a2c54
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x60]
lea esi, [esi + eax*2]
lea eax, [ecx + edx*2]
mov dword [esp + 0x60], esi
add dword [esp + 0x5c], eax
mov esi, 1
mov ecx, dword [esp + 0x3c]
call fcn.004d36a0
test eax, eax
jne 0x4a2c76
mov dword [esp + 0x40], 0x80000000
mov dword [esp + 0x48], 0x80000000
jmp 0x4a2d08
cmp dword [0x599810], 0
jne 0x4a2cf1
mov eax, dword [esp + 0x44]
sub esp, 8
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [esp + 0x40]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_round]
add esp, 8
call fcn.00516400
mov ecx, dword [esp + 0x3c]
push eax
call fcn.004d3c90
movd xmm0, dword [esp + 0x40]
sub esp, 8
cvtdq2ps xmm0, xmm0
divss xmm0, dword [esp + 0x40]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_round]
add esp, 8
call fcn.00516400
mov ecx, dword [esp + 0x3c]
push eax
call fcn.004d3ca0
mov eax, dword [esp + 0x6c]
sub dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
add eax, dword [esp + 0x50]
sub dword [esp + 0x40], eax
test dword [edi + 0x40], 0x4020
mov dword [esp + 0x38], 0
je 0x4a2d70
mov eax, dword [0x5997b0]
test eax, eax
je 0x4a2d70
cmp dword [0x599988], 0
jne 0x4a2d70
mov eax, dword [eax + 4]
cmp dword [eax + 4], 0
je 0x4a2d41
mov ecx, eax
call fcn.0049aa00
cmp dword [eax + 4], 0
jne 0x4a2d34
mov ecx, dword [eax + 0x8c]
test ecx, ecx
je 0x4a2d53
mov ecx, dword [ecx]
mov dword [esp + 0x38], ecx
jmp 0x4a2d5b
mov dword [esp + 0x38], 0
mov eax, dword [eax + 0x40]
shr eax, 1
not al
test al, 1
mov eax, 0
cmove esi, eax
mov dword [esp + 0x64], esi
push 0x10
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x50], esi
push 0x7f00
mov dword [eax + 0x10], 0
mov dword [esi + 4], edi
mov ecx, dword [eax + 4]
push 0
mov dword [ecx + 0x8c], esi
mov dword [esi + 8], 0
mov ecx, dword [edi + 0x90]
mov dword [ecx + 0x18], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], 0
cmp dword [0x59cab4], 0
jne 0x4a2e06
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 6
lea ecx, [esp + 0xa4]
movzx eax, ax
push ecx
push 0x1004
push eax
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atol]
add esp, 4
mov dword [0x59cab4], eax
mov edx, dword [edi + 0x20]
xor ecx, ecx
mov dword [esp + 0x44], ecx
test edx, edx
je 0x4a2e66
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a2e18
push 0
sub ecx, esi
push 0
push ecx
push edx
mov dword [esp + 0xb0], ecx
call fcn.004d4690
lea esi, [eax + 1]
lea ecx, [esi + esi]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push esi
push eax
push dword [esp + 0xbc]
mov dword [esp + 0x64], eax
push dword [edi + 0x20]
call fcn.004d4690
mov ecx, dword [esp + 0x68]
add esp, 0x24
mov esi, dword [esp + 0x50]
xor edx, edx
mov word [ecx + eax*2], dx
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0xb0]
push 0
push dword [0x5999b4]
push 0
push dword [esp + 0x44]
push dword [esp + 0x6c]
push dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x64]
push ecx
push ebx
mov ebx, dword [esp + 0x68]
push ebx
push eax
push dword [esp + 0x78]
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi], eax
test ebx, ebx
je 0x4a2eae
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [0x5997b0]
mov ebx, dword [esp + 0x3c]
mov ecx, ebx
mov dword [esi + 0xc], eax
mov dword [0x5997b0], esi
call fcn.004a41e0
test dword [edi + 0x40], 0x40000
je 0x4a2f0b
lea eax, [esp + 0xa0]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xa4]
sub eax, edx
mov ecx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0xac]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, ebx
call fcn.004d6560
call fcn.004970d0
test al, al
jne 0x4a2f37
cmp dword [0x5999b8], 0
jne 0x4a2f37
mov eax, dword [esi]
push eax
mov byte [0x596db0], 1
mov dword [0x5999b8], eax
call dword [sym.imp.USER32.dll_SetClipboardViewer]
mov dword [0x5999bc], eax
mov dword [ebx + 0xc], 1
cmp byte [0x599938], 0
je 0x4a2f51
xor ebx, ebx
mov byte [0x599938], bl
jmp 0x4a2f87
mov ebx, dword [esp + 0x64]
test ebx, ebx
je 0x4a2f87
and dword [edi + 0x40], 0xfffffffd
mov ecx, edi
mov esi, dword [0x5997bc]
mov dword [0x5997bc], 0x10
mov eax, dword [edi]
push 0x10
call dword [eax + 8]
mov ecx, edi
mov dword [0x5997bc], esi
call fcn.00497fc0
mov esi, dword [esp + 0x50]
test dword [edi + 0x40], 0x4000
je 0x4a2f9b
mov dword [0x59980c], edi
call fcn.004970f0
test ebx, ebx
jne 0x4a2fa4
lea eax, [ebx + 7]
jmp 0x4a2fbe
cmp dword [0x599810], 0
jne 0x4a2fb9
test byte [esp + 0x4c], 0x80
mov eax, 1
je 0x4a2fbe
mov eax, 4
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x59895c]
push dword [esi]
call dword [sym.imp.ole32.dll_RegisterDragDrop]
cmp byte [0x596db1], 0
jne 0x4a2fea
push 0
push 0
push dword [esi]
call dword [0x5999c4]
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00515f8b
mov esp, ebp
pop ebp
ret
push 0x59a53c
call fcn.0051639a
add esp, 4
cmp dword [0x59a53c], 0xffffffff
jne 0x4a2858
push 4
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x51f3f0
mov dword [0x59a530], eax
mov dword [0x59a538], 1
mov dword [0x59a534], 0
call fcn.005166c8
push 0x59a53c
call fcn.00516349
add esp, 0xc
jmp 0x4a2858