Function at 0x404200
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, 0x32
push ebx
mov ebx, str.0123456789ABCD_r_n
sub esp, 0x48
call fcn.00401a70
mov dword [ebp - 0x38], eax
mov edi, eax
lea esi, [esi]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb1
mov dword [esp], edi
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc2
mov dword [esp], edi
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
sub esi, 1
jne 0x404220
mov dword [ebp - 0x40], 0
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], esi
nop
mov eax, edi
mov dword [esp + 4], 0xd6
shl eax, 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov esi, eax
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x34a
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.EM_POSFROMCHAR_returned__Id__expected_0_n
mov dword [esp], eax
call fcn.004017f0
test edi, edi
je 0x4049d8
cmp edi, 1
je 0x404a90
call fcn.00406c60
mov dword [eax], 0x40a147
mov edx, dword [ebp - 0x40]
mov dword [eax + 4], 0x35c
mov eax, dword [ebp - 0x30]
imul edx, edi
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_y_ld__expected__d_n
mov dword [esp + 8], eax
cmp edx, eax
mov dword [esp + 0xc], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004017f0
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x35d
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_x_ld__expected__d_n
add edi, 1
movzx eax, al
mov dword [esp], eax
call fcn.004017f0
cmp edi, 0x32
jne 0x404280
lea eax, [ebp - 0x34]
mov esi, dword [ebp - 0x3c]
mov dword [esp + 0xc], 0x320
mov dword [esp + 8], eax
mov dword [esp + 4], 0xd6
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov edi, eax
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x363
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.EM_POSFROMCHAR_returned__Id__expected_0_n
call fcn.004017f0
call fcn.00406c60
imul ecx, dword [ebp - 0x40], 0x32
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x364
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], ecx
cmp eax, ecx
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_y_ld__expected__d_n
movzx eax, al
mov dword [ebp - 0x3c], ecx
mov dword [esp], eax
call fcn.004017f0
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x365
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_x_ld__expected__d_n
movzx eax, al
mov dword [esp], eax
call fcn.004017f0
lea edx, [ebp - 0x34]
mov dword [esp + 0xc], 0x370
mov dword [esp + 8], edx
mov dword [esp + 4], 0xd6
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov edi, eax
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x369
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.EM_POSFROMCHAR_returned__Id__expected_0_n
call fcn.004017f0
call fcn.00406c60
mov ecx, dword [ebp - 0x3c]
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x36a
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], ecx
cmp ecx, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_y_ld__expected__d_n
movzx eax, al
mov dword [esp], eax
call fcn.004017f0
call fcn.00406c60
mov edx, dword [ebp - 0x44]
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x36c
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], edx
cmp eax, edx
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_x_ld__expected__d_n
movzx eax, al
mov dword [esp], eax
call fcn.004017f0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xb5
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageA]
mov edi, dword [ebp - 0x40]
sub esp, 0x10
neg edi
lea esi, [esi]
lea eax, [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0xd6
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov dword [ebp - 0x3c], eax
call fcn.00406c60
mov ecx, dword [ebp - 0x3c]
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x375
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], str.EM_POSFROMCHAR_returned__Id__expected_0_n
call fcn.004017f0
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x376
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], edi
cmp edi, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_y_ld__expected__d_n
movzx eax, al
mov dword [esp], eax
call fcn.004017f0
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x379
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_x_ld__expected__d_n
add esi, 0x10
movzx eax, al
mov dword [esp], eax
call fcn.004017f0
mov eax, dword [ebp - 0x40]
add edi, eax
cmp esi, 0x320
jne 0x404520
lea eax, [ebp - 0x34]
mov dword [esp + 0xc], 0x320
mov dword [esp + 8], eax
mov dword [esp + 4], 0xd6
mov esi, dword [ebp - 0x38]
mov dword [esp], esi
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov edi, eax
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x37e
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.EM_POSFROMCHAR_returned__Id__expected_0_n
call fcn.004017f0
call fcn.00406c60
imul edi, dword [ebp - 0x40], 0x31
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x37f
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], edi
cmp eax, edi
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_y_ld__expected__d_n
movzx eax, al
mov dword [esp], eax
call fcn.004017f0
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x380
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_x_ld__expected__d_n
movzx eax, al
mov dword [esp], eax
call fcn.004017f0
lea eax, [ebp - 0x34]
mov dword [esp + 0xc], 0x370
mov dword [esp + 8], eax
mov dword [esp + 4], 0xd6
mov dword [esp], esi
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov ebx, eax
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x384
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.EM_POSFROMCHAR_returned__Id__expected_0_n
call fcn.004017f0
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x385
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], edi
cmp edi, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_y_ld__expected__d_n
movzx eax, al
mov dword [esp], eax
call fcn.004017f0
call fcn.00406c60
mov ecx, dword [ebp - 0x44]
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x386
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], ecx
cmp eax, ecx
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_x_ld__expected__d_n
movzx eax, al
mov dword [esp], eax
call fcn.004017f0
mov dword [esp + 0xc], str.aa_nthis_is_a_long_line_of_text_that_should_be_longer_than_the_controls_width_ncc_ndd_nee_nff_ngg_nhh_n
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], esi
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb5
mov dword [esp], esi
call dword [sym.imp.user32.dll_SendMessageA]
lea eax, [ebp - 0x34]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0xd6
mov dword [esp], esi
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov ebx, eax
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x38d
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.EM_POSFROMCHAR_returned__Id__expected_0_n
call fcn.004017f0
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x38e
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_y_ld__expected_0_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004017f0
call fcn.00406c60
mov edx, 1
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x38f
mov eax, dword [ebp - 0x34]
cmp eax, 1
je 0x40486c
xor edx, edx
mov ecx, eax
or ecx, dword [0x41d050]
sete dl
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_x_ld__expected_1_n
call fcn.004017f0
mov ebx, dword [ebp - 0x34]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x114
mov esi, dword [ebp - 0x38]
mov dword [esp], esi
call dword [sym.imp.user32.dll_SendMessageA]
lea eax, [ebp - 0x34]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0xd6
mov dword [esp], esi
call dword [sym.imp.user32.dll_SendMessageA]
sub esp, 0x10
mov edi, eax
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x396
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.EM_POSFROMCHAR_returned__Id__expected_0_n
call fcn.004017f0
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x397
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_y_ld__expected_0_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004017f0
mov edi, dword [0x41d050]
call fcn.00406c60
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test edi, edi
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x4049a9
call fcn.00406c60
mov dword [eax], 0x40a147
mov edx, dword [ebp - 0x34]
mov dword [eax + 4], 0x39a
mov eax, 1
cmp edx, ebx
jl 0x404989
mov eax, dword [0x41d050]
test eax, eax
sete cl
xor eax, eax
cmp edx, ebx
sete al
and eax, ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_x_ld__expected_value_less_than__d_n
call fcn.004017f0
call fcn.00406c60
shr dword [eax + 0x10], 1
call fcn.00406c60
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x404958
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DestroyWindow]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x34d
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_y_ld__expected_0_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004017f0
call fcn.00406c60
mov edx, 1
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x34e
mov eax, dword [ebp - 0x34]
cmp eax, 1
je 0x404a36
mov edx, eax
or edx, dword [0x41d050]
sete dl
movzx edx, dl
mov dword [esp + 8], eax
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_x_ld__expected_1_n
mov dword [esp], edx
call fcn.004017f0
mov ebx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], eax
mov dword [esp + 4], 0x58
mov dword [esp], 0x800
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
mov dword [ebp - 0x44], ebx
sub esp, 0x10
test eax, eax
je 0x404a88
lea eax, [ebx + 7]
test byte [ebp - 0x1d], 8
cmove eax, ebx
mov dword [ebp - 0x44], eax
add edi, 1
jmp 0x404280
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x356
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_y_ld__expected___0_n
test eax, eax
mov dword [esp + 8], eax
setg al
movzx eax, al
mov dword [esp], eax
call fcn.004017f0
call fcn.00406c60
mov dword [eax], 0x40a147
mov dword [eax + 4], 0x357
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.EM_POSFROMCHAR_reports_x_ld__expected__d_n
movzx eax, al
mov dword [esp], eax
call fcn.004017f0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
jmp 0x404a88