Function at 0x5b1c98
Capabilities:
Resolve function by parsing pe exports
Validate payment card number using luhn algorithm

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
xor ebx, ebx
push edi
mov eax, dword [esi + 0x78]
mov edi, dword [0x10019100]
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
jbe 0x5b1cff
shl eax, 2
push eax
call edi
mov ecx, eax
add esp, 4
cmp ecx, ebx
mov dword [esp + 0x14], ecx
je 0x5b1cff
mov edx, dword [esi + 0x78]
xor eax, eax
cmp edx, ebx
jbe 0x5b1cff
mov dword [ecx], ebx
mov edx, dword [esi + 0x78]
inc eax
add ecx, 4
cmp eax, edx
jb 0x5b1cf2
mov eax, dword [esi + 0x7c]
cmp eax, ebx
jbe 0x5b1d33
lea ecx, [eax*4]
push ecx
call edi
mov ecx, eax
add esp, 4
cmp ecx, ebx
mov dword [esp + 0x20], ecx
je 0x5b1d33
mov edx, dword [esi + 0x7c]
xor eax, eax
cmp edx, ebx
jbe 0x5b1d33
mov dword [ecx], ebx
mov edx, dword [esi + 0x7c]
inc eax
add ecx, 4
cmp eax, edx
jb 0x5b1d26
lea eax, [esi + 0xf8]
mov dword [esi + 0x34], ebx
mov dword [esi + 0xc00f8], eax
mov ecx, dword [eax + 0x28]
and ecx, 0xfffffff7
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0xd0188]
cmp eax, 4
jne 0x5b1d65
cmp dword [esi + 0xd018c], ebx
jne 0x5b1d65
mov eax, 4
jmp 0x5b1d67
xor eax, eax
lea edi, [esi + 0xe8]
push 4
cdq
push edi
push esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], 1
call fcn.005aac38
add esp, 0xc
test eax, eax
je 0x5b20ac
mov eax, dword [edi]
mov edx, 0x1001e1dc
cmp eax, dword [edx]
jne 0x5b20b6
push esi
call fcn.005b06a8
add esp, 4
test eax, eax
jne 0x5b2136
xor ecx, ecx
push 2
mov cx, word [esi + 0xd01aa]
push ecx
push esi
call fcn.005aba88
add esp, 0xc
test eax, eax
je 0x5b1dda
cmp eax, ebx
jle 0x5b1dd1
mov ebx, eax
cmp eax, 1
jg 0x5b2138
mov eax, dword [esi + 0x80]
test eax, eax
jne 0x5b1e96
mov eax, dword [esi + 0x78]
xor edi, edi
cmp eax, edi
jne 0x5b1dfb
mov dword [esp + 0x18], 1
jmp 0x5b1e4b
cmp eax, edi
mov dword [esp + 0x18], edi
jbe 0x5b1e96
lea ebp, [esi + 0xd0258]
mov eax, dword [esi + 0xe0]
mov edx, dword [esi + 0x1c]
push edx
mov ecx, dword [eax + edi*4]
push ecx
push ebp
call fcn.005ae728
add esp, 0xc
test eax, eax
jne 0x5b1e32
mov eax, dword [esi + 0x78]
inc edi
cmp edi, eax
jb 0x5b1e0d
jmp 0x5b1e96
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], 1
test eax, eax
je 0x5b1e4b
mov edx, eax
mov dword [edx + edi*4], 1
mov eax, dword [esi + 0x7c]
xor edi, edi
test eax, eax
jbe 0x5b1e96
lea ebp, [esi + 0xd0258]
mov ecx, dword [esi + 0xe4]
mov eax, dword [esi + 0x1c]
push eax
mov edx, dword [ecx + edi*4]
push edx
push ebp
call fcn.005ae728
add esp, 0xc
test eax, eax
jne 0x5b1e7f
mov eax, dword [esi + 0x7c]
inc edi
cmp edi, eax
jb 0x5b1e5a
jmp 0x5b1e96
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], 0
test eax, eax
je 0x5b1e96
mov dword [eax + edi*4], 1
mov eax, dword [esi + 0x80]
xor ebp, ebp
cmp eax, ebp
jne 0x5b1f1b
cmp dword [esp + 0x18], ebp
jne 0x5b1f1b
mov ax, word [esi + 0xd01ac]
cmp ax, bp
je 0x5b1ed3
and eax, 0xffff
push ebp
push eax
push esi
call fcn.005aba88
add esp, 0xc
cmp eax, ebp
je 0x5b1ed3
cmp eax, 1
mov ebx, eax
jg 0x5b2377
mov ax, word [esi + 0xd01ae]
cmp ax, bp
je 0x5b1efe
and eax, 0xffff
push ebp
push eax
push esi
call fcn.005aba88
add esp, 0xc
cmp eax, ebp
je 0x5b1efe
cmp eax, 1
mov ebx, eax
jg 0x5b2377
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
or eax, ecx
je 0x5b2085
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
jmp 0x5b2085
xor ecx, ecx
push 3
mov cx, word [esi + 0xd01ac]
push ecx
push esi
call fcn.005aba88
mov edi, eax
add esp, 0xc
cmp edi, ebp
je 0x5b1f52
mov eax, dword [esi + 0xd0148]
cmp eax, ebp
je 0x5b1f50
push eax
call dword [0x100190fc]
add esp, 4
mov dword [esi + 0xd0148], ebp
mov ebx, edi
mov eax, dword [esi + 0x30]
dec eax
cmp eax, 9
ja 0x5b1f73
xor edx, edx
mov dl, byte [eax + 0x1000e138]
jmp dword [edx*4 + 0x1000e128]
mov ax, word [esi + 0xd01ae]
cmp ax, bp
je 0x5b1fe8
and eax, 0xffff
push ebp
push eax
push esi
call fcn.005aba88
mov edi, eax
add esp, 0xc
cmp edi, ebp
je 0x5b1fe8
cmp edi, 1
mov ebx, edi
jg 0x5b2383
jmp 0x5b1ff3
cmp edi, 1
jg 0x5b2138
xor ebp, ebp
mov edx, dword [esi + 0xd0178]
mov edi, dword [esp + 0x28]
mov eax, dword [esi + 0xd017c]
mov ecx, dword [esp + 0x2c]
add edi, edx
mov edx, dword [esi + 0xd0184]
adc ecx, eax
lea eax, [esi + 0xd0180]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax]
add edi, ecx
mov cl, byte [esi + 0xd01a6]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x34]
adc edi, edx
test cl, 1
mov dword [esp + 0x34], edi
je 0x5b2056
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add edx, 0xfffffff4
adc ecx, 0xffffffff
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov edi, dword [esp + 0x24]
mov ecx, dword [esi + 0xd044c]
inc edi
cmp ecx, ebp
mov dword [esp + 0x24], edi
je 0x5b2085
mov edx, dword [esi + 0xd0124]
push eax
lea eax, [esi + 0xd0258]
push eax
push edx
push 3
push esi
call ecx
test eax, eax
jne 0x5b2391
mov edx, dword [esp + 0x44]
lea edi, [esi + 0xe8]
push 4
inc edx
push edi
push esi
mov dword [esp + 0x50], edx
call fcn.005aac38
add esp, 0xc
test eax, eax
jne 0x5b1d92
mov dword [esp + 0x10], ebx
mov ebx, 0x33
jmp 0x5b2219
mov eax, dword [esi + 0xd01d8]
mov dword [esp + 0x10], ebx
test eax, eax
je 0x5b20cd
or eax, 0xffffffff
mov dword [esp + 0x1c], eax
jmp 0x5b20da
mov eax, 0xffff
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x44]
lea edx, [ecx - 1]
and edx, eax
mov eax, dword [esi + 0xd01c8]
cmp edx, eax
je 0x5b213c
mov ebx, dword [0x10019114]
push 0x401
lea edi, [esi + 0xc00fc]
push ecx
push 0x1001c7b4
push edi
call ebx
add esp, 0xc
push eax
push edi
push esi
call dword [esi + 0xd043c]
push 0x401
push 0x1001c88c
push edi
call ebx
add esp, 8
push eax
push edi
push esi
call dword [esi + 0xd043c]
mov ebx, 3
jmp 0x5b2219
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 1
jg 0x5b2219
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x5b2219
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
mov ebp, 0x1001f5f0
call fcn.005ae5a8
mov ecx, eax
add esp, 0x10
test ecx, ecx
jge 0x5b217e
mov ebp, 0x1001e3cc
neg ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], 0x1001ad3c
cmp eax, 1
je 0x5b2197
mov dword [esp + 0x44], 0x1001ad40
mov eax, ecx
mov ebx, 0xa
cdq
idiv ebx
push 0
mov eax, 0x66666667
lea edi, [esi + 0xc00fc]
push edx
imul ecx
sar edx, 2
mov ecx, edx
mov eax, dword [esp + 0x30]
shr ecx, 0x1f
add edx, ecx
push edx
mov edx, dword [esp + 0x38]
push ebp
push 0x1001e0ec
push 0
push edx
push eax
push esi
call fcn.005ac118
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
add esp, 0x14
push eax
push 0x1001e0ec
push 0
push ecx
push edx
push esi
call fcn.005ac118
mov ecx, dword [esp + 0x4c]
add esp, 0x14
push eax
mov eax, dword [esp + 0x5c]
push eax
push ecx
push 0x1001b114
push edi
call dword [0x10019114]
add esp, 0x24
push eax
push edi
push esi
call dword [esi + 0xd043c]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5b227c
cmp ebx, 1
jg 0x5b226e
mov eax, dword [esi + 0x78]
xor ebp, ebp
test eax, eax
jbe 0x5b226e
mov edx, dword [esp + 0x14]
cmp dword [edx + ebp*4], 0
jne 0x5b2266
mov eax, dword [esi + 0xe0]
push 0x401
lea edi, [esi + 0xc00fc]
mov ecx, dword [eax + ebp*4]
push ecx
push 0x1001c838
push edi
call dword [0x10019114]
add esp, 0xc
push eax
push edi
push esi
call dword [esi + 0xd043c]
mov eax, dword [esi + 0x78]
inc ebp
cmp ebp, eax
jb 0x5b222f
mov edx, dword [esp + 0x14]
push edx
call dword [0x100190fc]
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5b22df
cmp ebx, 1
jg 0x5b22d1
mov eax, dword [esi + 0x7c]
xor ebp, ebp
test eax, eax
jbe 0x5b22d1
mov eax, dword [esp + 0x20]
cmp dword [eax + ebp*4], 0
jne 0x5b22c9
mov ecx, dword [esi + 0xe4]
push 0x401
lea edi, [esi + 0xc00fc]
mov edx, dword [ecx + ebp*4]
push edx
push 0x1001c85c
push edi
call dword [0x10019114]
add esp, 0xc
push eax
push edi
push esi
call dword [esi + 0xd043c]
mov eax, dword [esi + 0x7c]
inc ebp
cmp ebp, eax
jb 0x5b2292
mov eax, dword [esp + 0x20]
push eax
call dword [0x100190fc]
add esp, 4
cmp ebx, 1
jg 0x5b236d
mov eax, dword [esi + 0xd01d8]
test eax, eax
mov eax, 0x1001e1e8
jne 0x5b22fc
mov eax, 0x1001e1e4
mov ecx, dword [esi + 0xe8]
mov edx, dword [eax]
cmp ecx, edx
je 0x5b2345
mov eax, dword [esi + 0xd01dc]
test eax, eax
jne 0x5b2345
mov edx, 0x1001e1e4
mov eax, ecx
cmp eax, dword [edx]
je 0x5b2345
lea edi, [esi + 0xc00fc]
push 0x401
push 0x1001c768
push edi
call dword [0x10019114]
add esp, 8
push eax
push edi
push esi
call dword [esi + 0xd043c]
mov ebx, 1
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x5b2357
cmp ebx, 1
jg 0x5b2357
mov ebx, 0xb
cmp dword [esi + 0x30], 0xa
jl 0x5b236d
push 0
push 1
push 0x1001e124
push esi
call dword [esi + 0xd043c]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x30
ret
pop edi
pop esi
mov dword [esp + 8], ebx
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, edi
pop edi
pop esi
mov dword [esp + 8], ebx
pop ebp
pop ebx
add esp, 0x30
ret
mov dword [esp + 0x10], ebx
mov ebx, 0x50
jmp 0x5b2219