Function at 0x491570
Capabilities:
Get geographical location
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x84]
push edi
mov edi, ecx
mov dword [ebp - 0x3c], 0
push 2
xor ebx, ebx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x50], ebx
mov dword [edi + 0x8d8], eax
lea eax, [ebp - 0x2c]
push eax
push 0x21
push 0x400
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
call esi
test eax, eax
je 0x4915e7
movsx eax, byte [ebp - 0x2c]
sub eax, 0x30
je 0x4915e7
sub eax, 1
je 0x4915de
sub eax, 1
jne 0x4915e7
mov dword [ebp - 0x44], 2
jmp 0x4915ea
mov dword [ebp - 0x44], 1
jmp 0x4915ea
mov dword [ebp - 0x44], ebx
push 2
lea eax, [ebp - 0x2c]
push eax
push 0x1d
push 0x400
call esi
lea esi, [edi + 0xc8]
mov dword [ebp - 0x54], 1
push 4
mov edx, esi
mov ecx, edi
call fcn.004925f0
add esp, 4
test eax, eax
je 0x491c3c
nop dword [eax]
push 4
push 0x5d6c84
push esi
call fcn.00539a10
add esp, 0xc
test eax, eax
jne 0x491c52
mov ecx, edi
call fcn.0048e0b0
test eax, eax
jne 0x491c41
movzx edx, word [edi + 0x10954]
mov ecx, edi
push 2
call fcn.004934d0
add esp, 4
test eax, eax
je 0x491669
mov ebx, eax
cmp eax, 1
jg 0x491c41
mov eax, dword [edi + 0x10918]
mov dword [ebp - 0x2c], ebx
test eax, eax
je 0x491689
push eax
call fcn.0052fd09
add esp, 4
mov dword [edi + 0x10918], 0
movzx ebx, word [edi + 0x10956]
test ebx, ebx
je 0x491705
push ebx
call fcn.00531933
add esp, 4
mov dword [edi + 0x10918], eax
test eax, eax
jne 0x4916f0
push 0x401
push ecx
push ebx
lea esi, [edi + 0x8dc]
push str.warning:__extra_field_too_long___d_.__Ignoring..._n
push esi
call fcn.00436c30
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
mov edx, dword [edi + 0x10910]
mov ecx, edi
sub edx, dword [edi + 0x10914]
sub edx, dword [edi + 0x108e4]
add edx, dword [edi + 0x108e8]
add edx, ebx
call fcn.00492840
jmp 0x491705
push ebx
mov edx, eax
mov ecx, edi
call fcn.004925f0
add esp, 4
test eax, eax
je 0x491c3c
cmp dword [edi + 0x74], 0
jne 0x491745
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x491790
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x491748
nop dword [eax]
mov eax, dword [edi + 0xc0]
lea edx, [edi + 0x109f0]
push dword [edi + 0x18]
mov ecx, dword [eax + esi*4]
call fcn.004911f0
add esp, 4
cmp eax, 1
je 0x491790
inc esi
cmp esi, dword [edi + 0x6c]
jb 0x491720
mov ecx, dword [ebp - 0x3c]
cmp dword [edi + 0x74], 0
jne 0x4917dc
test ecx, ecx
jne 0x4917dc
movzx eax, word [edi + 0x10958]
test ax, ax
je 0x491c1a
mov edx, dword [edi + 0x10910]
mov ecx, edi
sub edx, dword [edi + 0x10914]
sub edx, dword [edi + 0x108e4]
add edx, dword [edi + 0x108e8]
add edx, eax
call fcn.00492840
jmp 0x491c1a
xor esi, esi
mov ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [edi + 0x70], esi
jbe 0x491748
nop
mov eax, dword [edi + 0xc4]
lea edx, [edi + 0x109f0]
push dword [edi + 0x18]
mov ecx, dword [eax + esi*4]
call fcn.004911f0
add esp, 4
cmp eax, 1
je 0x4917d2
inc esi
cmp esi, dword [edi + 0x70]
jb 0x4917a0
mov ecx, 1
mov dword [ebp - 0x3c], ecx
jmp 0x491748
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
jmp 0x491748
mov esi, dword [edi + 0x10918]
test esi, esi
je 0x4919e0
movzx edx, word [edi + 0x10956]
xor ecx, ecx
mov eax, dword [edi + 0x10944]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
test edx, edx
je 0x4919e0
cmp edx, 4
jb 0x49199e
mov edi, ecx
movzx ebx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ebx, 8
or ebx, eax
lea eax, [edx - 4]
cmp ebx, eax
ja 0x49199b
movzx edx, byte [esi + 1]
movzx eax, byte [esi]
shl edx, 8
or edx, eax
cmp edx, 0x5855
ja 0x491967
je 0x4918c4
cmp edx, 0xd
je 0x4918c4
cmp edx, 0x5455
jne 0x49197e
mov edi, 1
and ecx, 0xffffff00
cmp ebx, edi
jb 0x49197e
movzx eax, byte [esi + 4]
or ecx, eax
test cl, 1
je 0x49197e
cmp ebx, 5
jb 0x4918bc
movzx edx, byte [esi + 8]
movzx eax, byte [esi + 7]
shl edx, 8
add edx, eax
movzx eax, byte [esi + 6]
shl edx, 8
add edx, eax
movzx eax, byte [esi + 5]
shl edx, 8
add edx, eax
jns 0x4918ae
cmp dword [ebp - 0x34], 0x74320000
jb 0x491978
mov eax, edx
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
jmp 0x49197e
and ecx, 0xfffffffe
jmp 0x49197e
cmp ebx, 8
jb 0x49197e
test edi, edi
jne 0x49197e
movzx edx, byte [esi + 0xb]
or ecx, 3
movzx eax, byte [esi + 0xa]
shl edx, 8
add edx, eax
mov dword [ebp - 0x40], ecx
movzx eax, byte [esi + 9]
shl edx, 8
add edx, eax
movzx eax, byte [esi + 8]
shl edx, 8
add edx, eax
jns 0x49191c
cmp dword [ebp - 0x34], 0x74320000
sbb eax, eax
and ecx, 0xffffff00
inc eax
cmp dword [ebp - 0x34], 0x74320000
mov dword [ebp - 0x30], eax
cmovae ecx, dword [ebp - 0x40]
jmp 0x491923
mov dword [ebp - 0x30], 0
mov eax, edx
cdq
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
movzx edx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl edx, 8
add edx, eax
movzx eax, byte [esi + 5]
shl edx, 8
add edx, eax
movzx eax, byte [esi + 4]
shl edx, 8
add edx, eax
jns 0x49195c
cmp dword [ebp - 0x30], 0
jne 0x49195c
test cl, cl
je 0x49195c
and ecx, 0xfffffffd
jmp 0x49197e
mov eax, edx
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
jmp 0x49197e
cmp edx, 0x7855
jne 0x49197e
test edi, edi
jne 0x49197e
mov edi, 1
and ecx, 0xffffff00
mov edx, dword [ebp - 0x38]
mov eax, 0xfffffffc
sub eax, ebx
add esi, 4
add edx, eax
add esi, ebx
mov dword [ebp - 0x38], edx
cmp edx, 4
jae 0x491812
mov edi, dword [ebp - 0x5c]
test cl, 1
je 0x4919e0
lea eax, [ebp - 0x20]
push eax
call fcn.005457ba
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4919e0
mov eax, dword [ecx + 0xc]
mov esi, 0x64
mov ebx, dword [ecx + 0x10]
mov dword [ebp - 0x30], eax
inc ebx
mov eax, dword [ecx + 0x14]
cdq
idiv esi
mov eax, dword [ecx + 8]
mov esi, edx
mov dword [ebp - 0x40], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x58], eax
jmp 0x491a24
mov ecx, dword [edi + 0x10944]
xor edx, edx
mov eax, ecx
mov ebx, 0x64
shr eax, 0x19
mov esi, ecx
add eax, 0x50
shr esi, 0xb
div ebx
mov ebx, ecx
and esi, 0x1f
mov dword [ebp - 0x34], edx
mov edx, ecx
shr ebx, 0x15
shr edx, 0x10
and ebx, 0xf
and edx, 0x1f
shr ecx, 5
and ecx, 0x3f
mov dword [ebp - 0x40], esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x44]
sub eax, 1
je 0x491a3b
sub eax, 1
jne 0x491a40
mov dword [ebp - 0x30], ebx
mov ebx, esi
mov dword [ebp - 0x34], edx
jmp 0x491a40
mov dword [ebp - 0x30], ebx
mov ebx, edx
mov eax, dword [edi + 0x1094c]
movzx ecx, word [edi + 0x10940]
test cl, 1
mov dword [ebp - 0x60], ecx
mov ecx, dword [edi + 0x10950]
lea esi, [eax - 0xc]
cmove esi, eax
mov dword [ebp - 0x64], esi
test ecx, ecx
jne 0x491ae8
xor eax, eax
lea ecx, [eax + 5]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x38], eax
movzx eax, word [edi + 0x10942]
mov esi, eax
cmp eax, 0xd
jb 0x491a96
mov esi, 0xd
lea ecx, [esi*8 + str.Stored]
lea edx, [ebp - 0xc]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x491aa2
cmp esi, 8
je 0x491b59
cmp esi, 9
je 0x491b59
cmp esi, 0xd
jb 0x491b6a
movzx eax, word [edi + 0x10942]
push eax
lea eax, [ebp - 8]
push str._03u
push eax
call fcn.00436c30
add esp, 0xc
jmp 0x491b6a
cmp ecx, 0x1e8480
jbe 0x491b19
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov dword [ebp - 0x38], eax
shr eax, 1
cmp ecx, esi
jb 0x491b10
sub eax, esi
add eax, ecx
div dword [ebp - 0x38]
jmp 0x491b45
sub eax, ecx
add eax, esi
div dword [ebp - 0x38]
jmp 0x491b43
mov edx, ecx
shr edx, 1
cmp ecx, esi
jb 0x491b33
mov eax, ecx
sub eax, esi
imul eax, eax, 0x3e8
add eax, edx
xor edx, edx
div ecx
jmp 0x491b45
mov eax, esi
sub eax, ecx
imul eax, eax, 0x3e8
add eax, edx
xor edx, edx
div ecx
neg eax
test eax, eax
jns 0x491a6c
mov ecx, 5
sub ecx, eax
jmp 0x491a6f
mov eax, dword [ebp - 0x60]
shr eax, 1
and eax, 3
mov al, byte [eax + 0x5bbec4]
mov byte [ebp - 7], al
mov al, byte [edi + 0x10940]
lea edx, [edi + 0x8dc]
mov esi, dword [edi + 0x10b68]
lea ecx, [edi + 0x109f0]
and al, 1
neg al
sbb al, al
and al, 0x25
add al, 0x20
movzx eax, al
push eax
push dword [edi + 0x10948]
lea eax, [ebp - 0xc]
push eax
call fcn.0049a550
push eax
mov eax, dword [edi + 0x8d8]
mov eax, dword [eax + 0x18]
and al, 0x10
neg al
sbb al, al
and al, 0x3e
add al, 0x20
movzx eax, al
push eax
push dword [ebp - 0x58]
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x40]
push dword [ebp - 0x34]
push eax
mov eax, dword [esi + 0x10]
push ebx
push dword [ebp - 0x38]
mov ebx, dword [ebp - 0x64]
push ebx
push dword [edi + 0x10950]
call eax
movzx edx, word [edi + 0x10958]
xor eax, eax
cmp dword [edi + 0x38], eax
mov ecx, 5
cmove eax, ecx
mov ecx, edi
push eax
call fcn.004934d0
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov dword [ebp - 0x2c], ecx
test eax, eax
je 0x491c08
mov dword [ebp - 0x2c], eax
cmp eax, 1
jg 0x491c41
mov eax, dword [ebp - 0x4c]
add eax, dword [edi + 0x10950]
add dword [ebp - 0x48], ebx
inc dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x2c]
lea esi, [edi + 0xc8]
inc dword [ebp - 0x54]
mov edx, esi
push 4
mov ecx, edi
call fcn.004925f0
add esp, 4
test eax, eax
jne 0x491620
mov eax, 0x33
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x54]
lea eax, [ecx - 1]
cmp ax, word [edi + 0x1096e]
jne 0x491d26
cmp dword [edi + 0x38], 2
jge 0x491cc4
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
call fcn.00492320
test eax, eax
jns 0x491c83
mov ecx, 5
sub ecx, eax
jmp 0x491c86
lea ecx, [eax + 5]
mov eax, 0x66666667
imul ecx
mov eax, dword [edi + 0x10b68]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 0x48]
mov dword [eax + 0x18], edx
mov eax, dword [edi + 0x10b68]
mov edx, dword [ebp - 0x4c]
mov dword [eax + 0x1c], edx
mov eax, dword [edi + 0x10b68]
mov dword [eax + 0x20], ecx
mov eax, dword [edi + 0x10b68]
mov ecx, dword [ebp - 0x50]
mov dword [eax + 0x24], ecx
push 4
push 0x5d6c80
push esi
call fcn.00539a10
add esp, 0xc
test eax, eax
je 0x491d02
push 0x401
push ecx
lea esi, [edi + 0x8dc]
push str._nnote:__didnt_find_end_of_central_dir_signature_at_end_of_central_dir._n
push esi
call fcn.00436c30
add esp, 0xc
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
mov ebx, 1
cmp dword [ebp - 0x50], 0
jne 0x491d13
cmp ebx, 1
mov ecx, 0xb
cmovle ebx, ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
push 0x401
push ecx
push ecx
lea esi, [edi + 0x8dc]
push str.error:__expected_central_file_header_signature_not_found__file__lu_._n
push esi
call fcn.00436c30
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
push 0x401
push ecx
push str.___please_check_that_you_have_transferred_or_created_the_zipfile_in_the_n__appropriate_BINARY_mode_and_that_you_have_compiled_UnZip_properly__n
push esi
call fcn.00436c30
add esp, 0xc
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
mov ecx, dword [ebp - 4]
mov eax, 3
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b789
mov esp, ebp
pop ebp
ret