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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x88]
push edi
mov edi, ecx
mov dword [ebp - 0x3c], 0
push 2
xor ebx, ebx
mov dword [ebp - 0x60], 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 0x4a7167
movsx eax, byte [ebp - 0x2c]
sub eax, 0x30
je 0x4a7167
sub eax, 1
je 0x4a715e
sub eax, 1
jne 0x4a7167
mov dword [ebp - 0x44], 2
jmp 0x4a716a
mov dword [ebp - 0x44], 1
jmp 0x4a716a
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.004a81c0
add esp, 4
test eax, eax
je 0x4a77b5
mov dword [ebp - 0x64], 0x64
push 4
push 0x5b0bd4
push esi
call fcn.005274a0
add esp, 0xc
test eax, eax
jne 0x4a77cb
mov ecx, edi
call fcn.004a3c30
test eax, eax
jne 0x4a77ba
movzx edx, word [edi + 0x10954]
mov ecx, edi
push 2
call fcn.004a8fc0
add esp, 4
test eax, eax
je 0x4a71ec
mov ebx, eax
cmp eax, 1
jg 0x4a77ba
mov eax, dword [edi + 0x10918]
mov dword [ebp - 0x2c], ebx
test eax, eax
je 0x4a720c
push eax
call fcn.0051d799
add esp, 4
mov dword [edi + 0x10918], 0
movzx ebx, word [edi + 0x10956]
test ebx, ebx
je 0x4a7288
push ebx
call fcn.0051f3c3
add esp, 4
mov dword [edi + 0x10918], eax
test eax, eax
jne 0x4a7273
push 0x401
push ecx
push ebx
lea esi, [edi + 0x8dc]
push str.warning:__extra_field_too_long___d_.__Ignoring..._n
push esi
call fcn.004a2840
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.004a8410
jmp 0x4a7288
push ebx
mov edx, eax
mov ecx, edi
call fcn.004a81c0
add esp, 4
test eax, eax
je 0x4a77b5
cmp dword [edi + 0x74], 0
jne 0x4a72c5
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x4a7310
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x4a72c8
mov eax, dword [edi + 0xc0]
lea edx, [edi + 0x109f0]
push dword [edi + 0x18]
mov ecx, dword [eax + esi*4]
call fcn.004a6d70
add esp, 4
cmp eax, 1
je 0x4a7310
inc esi
cmp esi, dword [edi + 0x6c]
jb 0x4a72a0
mov ecx, dword [ebp - 0x3c]
cmp dword [edi + 0x74], 0
jne 0x4a735c
test ecx, ecx
jne 0x4a735c
movzx eax, word [edi + 0x10958]
test ax, ax
je 0x4a7793
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.004a8410
jmp 0x4a7793
xor esi, esi
mov ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [edi + 0x70], esi
jbe 0x4a72c8
nop
mov eax, dword [edi + 0xc4]
lea edx, [edi + 0x109f0]
push dword [edi + 0x18]
mov ecx, dword [eax + esi*4]
call fcn.004a6d70
add esp, 4
cmp eax, 1
je 0x4a7352
inc esi
cmp esi, dword [edi + 0x70]
jb 0x4a7320
mov ecx, 1
mov dword [ebp - 0x3c], ecx
jmp 0x4a72c8
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
jmp 0x4a72c8
mov esi, dword [edi + 0x10918]
test esi, esi
je 0x4a7554
movzx edx, word [edi + 0x10956]
xor ecx, ecx
mov eax, dword [edi + 0x10944]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
test edx, edx
je 0x4a7554
cmp edx, 4
jb 0x4a751e
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 0x4a751b
movzx edx, byte [esi + 1]
movzx eax, byte [esi]
shl edx, 8
or edx, eax
cmp edx, 0x5855
ja 0x4a74e7
je 0x4a7444
cmp edx, 0xd
je 0x4a7444
cmp edx, 0x5455
jne 0x4a74fe
mov edi, 1
and ecx, 0xffffff00
cmp ebx, edi
jb 0x4a74fe
movzx eax, byte [esi + 4]
or ecx, eax
test cl, 1
je 0x4a74fe
cmp ebx, 5
jb 0x4a743c
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 0x4a742e
cmp dword [ebp - 0x30], 0x74320000
jb 0x4a74f8
mov eax, edx
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
jmp 0x4a74fe
and ecx, 0xfffffffe
jmp 0x4a74fe
cmp ebx, 8
jb 0x4a74fe
test edi, edi
jne 0x4a74fe
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 0x4a749c
cmp dword [ebp - 0x30], 0x74320000
sbb eax, eax
and ecx, 0xffffff00
inc eax
cmp dword [ebp - 0x30], 0x74320000
mov dword [ebp - 0x38], eax
cmovae ecx, dword [ebp - 0x40]
jmp 0x4a74a3
mov dword [ebp - 0x38], 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 0x4a74dc
cmp dword [ebp - 0x38], 0
jne 0x4a74dc
test cl, cl
je 0x4a74dc
and ecx, 0xfffffffd
jmp 0x4a74fe
mov eax, edx
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
jmp 0x4a74fe
cmp edx, 0x7855
jne 0x4a74fe
test edi, edi
jne 0x4a74fe
mov edi, 1
and ecx, 0xffffff00
mov edx, dword [ebp - 0x34]
mov eax, 0xfffffffc
sub eax, ebx
add esi, 4
add edx, eax
add esi, ebx
mov dword [ebp - 0x34], edx
cmp edx, 4
jae 0x4a7392
mov edi, dword [ebp - 0x60]
test cl, 1
je 0x4a7554
lea eax, [ebp - 0x20]
push eax
call fcn.0053302a
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4a7554
mov eax, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x10]
cdq
inc ebx
idiv dword [ebp - 0x64]
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x58], eax
jmp 0x4a7595
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, 0x10
div ebx
mov ebx, ecx
and esi, 0x1f
mov dword [ebp - 0x38], edx
mov edx, ecx
shr edx, 0xb
shr ebx, 0x15
and edx, 0x1f
shr ecx, 5
and ebx, 0xf
and ecx, 0x3f
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], esi
sub eax, 1
je 0x4a75af
sub eax, 1
jne 0x4a75b4
mov dword [ebp - 0x30], ebx
mov ebx, edx
mov dword [ebp - 0x38], esi
jmp 0x4a75b4
mov dword [ebp - 0x30], ebx
mov ebx, esi
mov eax, dword [edi + 0x1094c]
movzx ecx, word [edi + 0x10940]
test cl, 1
mov dword [ebp - 0x68], ecx
mov ecx, dword [edi + 0x10950]
lea edx, [eax - 0xc]
cmove edx, eax
mov dword [ebp - 0x40], edx
test ecx, ecx
jne 0x4a765c
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 - 0x34], eax
movzx eax, word [edi + 0x10942]
mov esi, eax
cmp eax, 0xd
jb 0x4a760a
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 0x4a7616
cmp esi, 8
je 0x4a76d3
cmp esi, 9
je 0x4a76d3
cmp esi, 0xd
jb 0x4a76e4
movzx eax, word [edi + 0x10942]
push eax
lea eax, [ebp - 8]
push str._03u
push eax
call fcn.004a2840
add esp, 0xc
jmp 0x4a76e4
cmp ecx, 0x1e8480
jbe 0x4a7693
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov esi, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
shr esi, 1
cmp ecx, eax
jb 0x4a768a
sub esi, eax
lea eax, [ecx + esi]
div dword [ebp - 0x34]
jmp 0x4a76bf
sub eax, ecx
add eax, esi
div dword [ebp - 0x34]
jmp 0x4a76bd
mov esi, ecx
shr esi, 1
cmp ecx, edx
jb 0x4a76ad
mov eax, ecx
sub eax, edx
xor edx, edx
imul eax, eax, 0x3e8
add eax, esi
div ecx
jmp 0x4a76bf
mov eax, edx
xor edx, edx
sub eax, ecx
imul eax, eax, 0x3e8
add eax, esi
div ecx
neg eax
test eax, eax
jns 0x4a75e0
mov ecx, 5
sub ecx, eax
jmp 0x4a75e3
mov eax, dword [ebp - 0x68]
shr eax, 1
and eax, 3
mov al, byte [eax + 0x58d32c]
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.004afcf0
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 [esi + 0x10]
push dword [ebp - 0x5c]
push dword [ebp - 0x38]
push dword [ebp - 0x30]
push ebx
push dword [ebp - 0x34]
mov ebx, dword [ebp - 0x40]
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.004a8fc0
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov dword [ebp - 0x2c], ecx
test eax, eax
je 0x4a7781
mov dword [ebp - 0x2c], eax
cmp eax, 1
jg 0x4a77ba
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.004a81c0
add esp, 4
test eax, eax
jne 0x4a71a3
mov eax, 0x33
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x54]
lea eax, [ecx - 1]
cmp ax, word [edi + 0x1096e]
jne 0x4a789f
cmp dword [edi + 0x38], 2
jge 0x4a783d
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
call fcn.004a7e90
test eax, eax
jns 0x4a77fc
mov ecx, 5
sub ecx, eax
jmp 0x4a77ff
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 0x5b0bd0
push esi
call fcn.005274a0
add esp, 0xc
test eax, eax
je 0x4a787b
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.004a2840
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 0x4a788c
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.00519459
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.004a2840
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
push 0x401
push ecx
push 0x58c958
push esi
call fcn.004a2840
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.00519459
mov esp, ebp
pop ebp
ret