Function at 0x100643b0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov dword [eax], 0
mov eax, dword [esp + 0x28]
push edi
lea ebx, [esi + 0x88]
lea ebp, [esi + 0x8a8]
push eax
push 0xa
push dword [esp + 0x30]
call fcn.100b1df0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1006528e
mov eax, dword [esp + 0x28]
sub edi, eax
inc edi
push edi
push eax
push ebp
call fcn.100460d0
add esp, 0xc
test eax, eax
jne 0x10065095
mov eax, dword [esp + 0x30]
sub dword [esp + 0x2c], edi
add dword [esp + 0x28], edi
add dword [eax], edi
cmp dword [ebx + 0x44], 0
jne 0x10064490
push ebp
call fcn.10046130
mov ebp, eax
lea eax, [esi + 0x8a8]
push eax
call fcn.10046140
mov edi, dword [esp + 0x2c]
add esp, 8
mov ecx, dword [edi + 0x200]
test dword [ecx + 0x44], 0x40000
je 0x10064476
cmp ebp, 5
mov ecx, 5
sbb edi, edi
inc edi
cmp ebp, 5
cmova ebp, ecx
push ebp
push eax
push 0x100f1f3c
call fcn.1005c5f0
add esp, 0xc
test eax, eax
mov eax, 2
cmovne eax, edi
mov edi, dword [esp + 0x24]
jmp 0x10064481
push ebp
push eax
push esi
call fcn.10065810
add esp, 0xc
cmp eax, 2
je 0x1006509d
lea ebp, [esi + 0x8a8]
push ebp
call fcn.10046140
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0x100649e1
cmp cl, 0xd
je 0x100649e1
mov ecx, dword [ebx + 0x44]
mov edi, 4
lea eax, [ecx + 1]
mov dword [ebx + 0x44], eax
test ecx, ecx
jne 0x100648a3
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp + 0x200]
mov eax, dword [eax + 0x44]
test al, 3
je 0x100646df
mov al, byte [edx]
mov edi, edx
test al, al
je 0x100644f6
cmp al, 0x20
je 0x100644ee
cmp al, 9
jne 0x100644f6
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100644e6
push 5
push 0x100f1f34
push edi
call fcn.100c5d50
add esp, 0xc
test eax, eax
jne 0x100645a8
movsx ecx, byte [edi + 5]
mov eax, ecx
sub eax, 0x31
je 0x100645ef
sub eax, 1
je 0x1006452b
sub eax, 1
jne 0x100650c8
mov al, byte [edi + 6]
cmp al, 0x20
je 0x10064536
cmp al, 9
jne 0x100645a8
lea edx, [ecx - 0x30]
mov cl, byte [edi + 7]
mov al, cl
lea edx, [edx + edx*4]
add edx, edx
sub al, 0x30
mov dword [esp + 0x18], edx
cmp al, 9
ja 0x100645a8
mov al, byte [edi + 8]
mov byte [esp + 0x20], al
sub al, 0x30
cmp al, 9
ja 0x100645a8
mov al, byte [edi + 9]
mov byte [esp + 0x13], al
sub al, 0x30
cmp al, 9
ja 0x100645a8
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [esp + 0x20]
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, byte [esp + 0x13]
lea ecx, [ecx - 0xa68]
lea ecx, [eax + ecx*2]
mov dword [ebx + 0x50], ecx
mov al, byte [edi + 0xa]
cmp al, 0x20
je 0x1006468b
cmp al, 9
je 0x1006468b
cmp al, 0xa
jl 0x100645a8
cmp al, 0xd
jle 0x1006468b
lea eax, [esi + 0x8a8]
push eax
call fcn.10046130
add esp, 4
push eax
lea eax, [esi + 0x8a8]
push eax
call fcn.10046140
add esp, 4
push eax
push esi
call fcn.10065810
add esp, 0xc
cmp eax, 1
jne 0x10065152
lea edi, [ebp + 0x471]
mov dword [ebx + 0x50], 0xc8
mov byte [edi], 0xa
jmp 0x100647b5
cmp byte [edi + 6], 0x2e
jne 0x10065137
mov al, byte [edi + 7]
cmp al, 0x30
je 0x10064608
cmp al, 0x31
jne 0x10065137
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x10064619
cmp cl, 9
jne 0x10065137
mov cl, byte [edi + 9]
movsx edx, al
mov al, cl
sub edx, 0x26
sub al, 0x30
mov dword [esp + 0x18], edx
cmp al, 9
ja 0x10065137
mov al, byte [edi + 0xa]
mov byte [esp + 0x20], al
sub al, 0x30
cmp al, 9
ja 0x10065137
mov al, byte [edi + 0xb]
mov byte [esp + 0x13], al
sub al, 0x30
cmp al, 9
ja 0x10065137
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [esp + 0x20]
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, byte [esp + 0x13]
lea ecx, [ecx - 0xa68]
lea ecx, [eax + ecx*2]
mov dword [ebx + 0x50], ecx
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x1006468b
cmp al, 9
je 0x1006468b
sub al, 0xa
cmp al, 3
ja 0x10065137
cmp ecx, 0x64
jl 0x1006511c
mov eax, edx
sub eax, 0xa
je 0x100646a4
sub eax, 1
jne 0x100650e3
lea edi, [ebp + 0x471]
mov byte [edi], dl
cmp dword [ebx + 0x6c], 3
jne 0x100646c5
cmp dl, 0x14
je 0x100646c5
push 0x100f23d4
push esi
call fcn.10056ac0
add esp, 8
cmp byte [edi], 0x14
jae 0x100647b5
mov eax, dword [ebp + 0x440]
mov dword [eax], 0xffffffff
jmp 0x100647b5
test eax, 0x40000
je 0x10065152
mov al, byte [edx]
mov edi, edx
test al, al
je 0x10064702
cmp al, 0x20
je 0x100646fa
cmp al, 9
jne 0x10064702
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100646f2
push 5
push 0x100f1f3c
push edi
call fcn.100c5d50
add esp, 0xc
test eax, eax
jne 0x10065152
mov al, byte [edi + 5]
sub al, 0x30
cmp al, 9
ja 0x1006518e
cmp byte [edi + 6], 0x2e
jne 0x1006518e
mov al, byte [edi + 7]
sub al, 0x30
cmp al, 9
ja 0x1006518e
mov al, byte [edi + 8]
cmp al, 0x20
je 0x1006474d
cmp al, 9
jne 0x1006518e
mov cl, byte [edi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x1006518e
mov dh, byte [edi + 0xa]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x1006518e
mov dl, byte [edi + 0xb]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x1006518e
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [ebx + 0x50], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x100647ac
cmp al, 9
je 0x100647ac
sub al, 0xa
cmp al, 3
ja 0x1006518e
lea edi, [ebp + 0x471]
mov byte [edi], 0xb
mov eax, dword [ebx + 0x50]
mov ecx, edi
mov dl, byte [esi + 0xd51]
mov dword [esi + 0xd78], eax
movzx eax, byte [edi]
mov dword [esi + 0xd80], eax
mov al, byte [edi]
test dl, dl
je 0x100647df
cmp dl, al
jbe 0x100647e5
lea ecx, [ebp + 0x471]
mov byte [esi + 0xd51], al
mov eax, dword [esi + 0xc38]
or eax, dword [esi + 0xc3c]
je 0x1006480e
cmp byte [esi + 0xd52], 0
jne 0x1006480e
cmp dword [ebx + 0x50], 0x1a0
mov edi, ecx
jne 0x1006480e
mov byte [ebx + 0xb9], 1
mov al, byte [edi]
cmp al, 0xa
jne 0x1006482c
push 0x100f211c
push esi
call fcn.10056ac0
push 1
push ebp
call fcn.10057f50
add esp, 0x10
jmp 0x10064848
cmp al, 0x14
je 0x1006483c
cmp dword [ebx + 0x6c], 2
jne 0x10064848
cmp dword [ebx + 0x50], 0x65
jne 0x10064848
mov eax, dword [ebp + 0x440]
mov dword [eax], 2
mov ecx, dword [ebx + 0x50]
lea eax, [ecx - 0x64]
cmp eax, 0x63
setbe al
mov byte [ebx + 0xba], al
sub ecx, 0xcc
je 0x10064876
sub ecx, 0x64
jne 0x10064898
cmp byte [esi + 0x3c0], cl
je 0x10064876
mov byte [esi + 0xe3c], 1
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov byte [ebx + 0xba], 1
mov edi, 0xc
lea ebp, [esi + 0x8a8]
lea eax, [esi + 0x8a8]
push eax
call fcn.10046140
push ebp
mov dword [esp + 0x28], eax
call fcn.10046130
mov ebp, dword [esp + 0x28]
push eax
push 0
push ebp
mov dword [esp + 0x2c], eax
call fcn.100b1df0
add esp, 0x14
test eax, eax
jne 0x1006517f
mov ecx, dword [esi + 0xcc]
cmp ecx, 2
jl 0x10064907
mov al, byte [ebp]
cmp al, 0x20
je 0x100648eb
cmp al, 9
jne 0x100648f0
cmp ecx, 2
jg 0x10064907
push dword [esp + 0x18]
push 0x3a
push ebp
call fcn.100b1df0
add esp, 0xc
test eax, eax
je 0x10065163
push dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
push ebp
push esi
call fcn.100633a0
add esp, 0xc
test eax, eax
jne 0x10065095
mov eax, dword [ebx + 0x50]
sub eax, 0x64
cmp eax, 0x64
jae 0x1006492f
or edi, 0x20
lea eax, [esi + 0x8a8]
push eax
call fcn.10046130
mov ebp, dword [esp + 0x18]
push eax
push ebp
push 1
push esi
call fcn.10056950
lea eax, [esi + 0x8a8]
push eax
call fcn.10046130
push eax
push ebp
push edi
push esi
call fcn.10056f70
add esp, 0x28
test eax, eax
jne 0x10065095
lea eax, [esi + 0x8a8]
push eax
call fcn.10046130
mov ecx, dword [esi + 0xc4]
mov edx, eax
mov edi, 0x4b000
add esp, 4
add ecx, edx
cmp edx, edi
jae 0x100649d8
mov eax, dword [esi + 0xdb8]
add dword [esi + 0xc0], edx
add eax, edx
mov dword [esi + 0xdb8], eax
mov dword [esi + 0xc4], ecx
cmp ecx, edi
ja 0x100649bb
cmp eax, 0x5dc000
jbe 0x10065078
mov ecx, eax
mov edi, 0x5dc000
push edi
push ecx
push 0x100f216c
push esi
call fcn.100569f0
add esp, 0x10
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
test ecx, ecx
jne 0x100649bb
jmp 0x10065078
mov ecx, dword [ebx + 0x50]
lea eax, [ecx - 0x64]
cmp eax, 0x63
ja 0x10064a4f
sub ecx, 0x64
je 0x10064a1f
sub ecx, 1
je 0x10064a09
mov byte [ebx + 0xb4], 1
mov dword [ebx + 0x44], 0
jmp 0x10064abe
cmp dword [ebx + 0x6c], 2
je 0x1006519b
mov byte [ebx + 0xb4], 0
jmp 0x10064abe
cmp dword [ebx + 0x68], 0
mov byte [ebx + 0xb4], 1
mov dword [ebx + 0x44], 0
jle 0x10064abe
or dword [ebx + 0x54], 2
push 0
push esi
mov dword [ebx + 0x68], 0
call fcn.100466b0
add esp, 8
jmp 0x10064abe
cmp dword [ebx + 0x6c], 2
jne 0x10064a60
push dword [esi + 0x7c]
call fcn.100467d0
add esp, 4
mov eax, dword [ebx]
and eax, dword [ebx + 4]
mov byte [ebx + 0xb4], 0
cmp eax, 0xffffffff
jne 0x10064abe
cmp byte [ebx + 0xbb], 0
jne 0x10064abe
mov ebp, dword [esp + 0x24]
cmp byte [ebp + 0x1e6], 0
jne 0x10064abe
cmp byte [ebp + 0x471], 0xb
jne 0x10064abe
mov eax, dword [ebp + 0x200]
test dword [eax + 0x44], 0x40000
jne 0x10064abe
cmp byte [esi + 0xd52], 5
je 0x10064abe
push 0x100f21dc
push esi
call fcn.10056ac0
push 2
push ebp
call fcn.10057f50
add esp, 0x10
cmp byte [ebx + 0xb4], 0
jne 0x10064b3e
cmp byte [esi + 0x144], 0
jne 0x10064b23
cmp byte [ebx + 0xbb], 0
jne 0x10064b23
mov ecx, dword [ebx]
mov eax, ecx
mov edx, dword [ebx + 4]
and eax, edx
cmp eax, 0xffffffff
je 0x10064b3e
mov ebp, dword [esi + 0x4c0]
mov eax, ebp
mov edi, dword [esi + 0x4c4]
or eax, edi
je 0x10064b0b
cmp edx, edi
jg 0x100651cb
jl 0x10064b0b
cmp ecx, ebp
ja 0x100651cb
push edx
push ecx
push esi
call fcn.10067160
mov eax, dword [ebx]
add esp, 0xc
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
jmp 0x10064b3e
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 0xc], 0xffffffff
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov ebp, dword [esp + 0x24]
cmp byte [ebp + 0x1e6], 0
je 0x10064bd2
mov eax, dword [esi + 0xd8]
cmp eax, 0x191
jne 0x10064b67
cmp dword [ebp + 0x270], 2
je 0x10064b77
jmp 0x10064b8c
cmp eax, 0x197
jne 0x10064b8c
cmp dword [ebp + 0x274], 2
jne 0x10064b8c
push 0x100f2214
push esi
call fcn.10056ac0
add esp, 8
mov byte [esi + 0xd59], 1
cmp byte [ebp + 0x1e6], 0
je 0x10064bd2
mov eax, dword [esi + 0xd8]
cmp eax, 0x191
jne 0x10064bad
cmp dword [ebp + 0x2f8], 1
je 0x10064bbd
jmp 0x10064bd2
cmp eax, 0x197
jne 0x10064bd2
cmp dword [ebp + 0x2fc], 1
jne 0x10064bd2
push 0x100f2214
push esi
call fcn.10056ac0
add esp, 8
mov byte [esi + 0xd59], 1
cmp dword [ebp + 0x2f8], 3
jne 0x10064bf1
cmp dword [esi + 0xd8], 0x191
je 0x10064bf1
mov dword [ebp + 0x2f8], 4
cmp dword [ebp + 0x2fc], 3
jne 0x10064c10
cmp dword [esi + 0xd8], 0x197
je 0x10064c10
mov dword [ebp + 0x2fc], 4
mov eax, dword [ebx + 0x50]
sub eax, 0x64
cmp eax, 0x64
lea eax, [esi + 0x8a8]
push eax
sbb edi, edi
and edi, 0x20
add edi, 4
call fcn.10046130
add esp, 4
lea ecx, [esi + 0x8a8]
mov ebp, eax
push ebp
push ecx
call fcn.10046140
add esp, 4
push eax
push edi
push esi
call fcn.10056f70
add esp, 0x10
test eax, eax
jne 0x10065095
mov ecx, dword [esi + 0xc4]
mov edx, 0x4b000
add ecx, ebp
cmp ebp, edx
jae 0x10064cb0
mov edi, dword [esi + 0xdb8]
add dword [esi + 0xc0], ebp
add edi, ebp
mov dword [esi + 0xdb8], edi
mov dword [esi + 0xc4], ecx
cmp ecx, edx
ja 0x10064c93
cmp edi, 0x5dc000
jbe 0x10064cb4
mov ecx, edi
mov edx, 0x5dc000
push edx
push ecx
push 0x100f216c
push esi
call fcn.100569f0
add esp, 0x10
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
test ecx, ecx
jne 0x10064c93
mov edi, dword [ebx + 0x50]
push esi
call fcn.10065b40
add esp, 4
test al, al
jne 0x10065272
lea eax, [edi - 0x64]
cmp eax, 0x63
ja 0x10064cd8
mov eax, dword [esi + 0xc0]
jmp 0x10064cda
xor eax, eax
mov ebp, dword [esi + 0x18]
xor edi, edi
mov dword [esi + 0xc8], eax
mov ecx, 0xffffffff
mov edx, dword [esi + 0x5e4]
mov eax, 0xffffffbf
test edx, edx
mov byte [esp + 0x13], 0
mov byte [esp + 0x20], 0
cmovne eax, ecx
mov ecx, dword [esi + 0xd8]
mov dword [esp + 0x18], eax
lea eax, [ecx - 0x64]
cmp eax, 0x63
jbe 0x10064f04
cmp byte [esi + 0xd59], 0
lea eax, [esi + 0xd59]
mov dword [esp + 0x14], eax
je 0x10064d41
cmp byte [esi + 0x6c2], 0
mov eax, 0x16
cmovne edi, eax
jmp 0x10064efc
cmp dword [esi + 0xd40], edi
jne 0x10064d53
test edx, edx
je 0x10064dc1
lea eax, [esi + 0xd59]
cmp ecx, 0x191
je 0x10064d70
cmp byte [ebp + 0x1f0], 0
je 0x10064dc1
mov dword [esp + 0x14], eax
cmp ecx, 0x12c
jge 0x10064dc1
push dword [esp + 0x18]
lea eax, [esi + 0x970]
push eax
call fcn.10065ed0
add esp, 8
mov byte [esp + 0x13], al
test al, al
jne 0x10064d92
mov ecx, dword [esp + 0x14]
mov byte [ecx], 1
cmp dword [esi + 0x974], 8
jne 0x10064dc1
cmp byte [ebp + 0x471], 0xb
jbe 0x10064dc1
push 0x100f180c
push esi
call fcn.10056ac0
push 1
push ebp
call fcn.10057f50
add esp, 0x10
mov byte [esi + 0xd50], 2
cmp byte [ebp + 0x1e2], 0
je 0x10064e05
mov eax, dword [esi + 0xd8]
cmp eax, 0x197
je 0x10064de7
cmp byte [ebp + 0x1f0], 0
je 0x10064e05
cmp eax, 0x12c
jge 0x10064e05
lea eax, [esi + 0x980]
push 0xffffffffffffffbf
push eax
call fcn.10065ed0
add esp, 8
test al, al
jne 0x10064e09
mov byte [esi + 0xd59], 1
jmp 0x10064e09
mov al, byte [esp + 0x20]
cmp byte [esp + 0x13], 0
jne 0x10064e78
test al, al
jne 0x10064e78
cmp dword [esi + 0xd8], 0x12c
jge 0x10064ed6
cmp byte [esi + 0x97c], al
jne 0x10064ed6
cmp byte [ebp + 0x1f0], al
je 0x10064ed6
mov al, byte [esi + 0xd52]
test al, al
je 0x10064ed6
cmp al, 5
je 0x10064ed6
push dword [esi + 0xca4]
call dword [0x1011b0b8]
add esp, 4
mov dword [esi + 0x110], eax
test eax, eax
je 0x100651e6
mov byte [esi + 0x97c], 1
jmp 0x10064ed6
mov al, byte [esi + 0xd52]
test al, al
je 0x10064ea3
cmp al, 5
je 0x10064ea3
cmp byte [esi + 0xd67], 0
jne 0x10064ea3
push ebp
push esi
call fcn.10065920
mov edi, eax
add esp, 8
test edi, edi
jne 0x100651eb
push dword [esi + 0x110]
call dword [0x1011b0b0]
push dword [esi + 0xca4]
mov dword [esi + 0x110], 0
call dword [0x1011b0b8]
add esp, 8
mov dword [esi + 0x110], eax
test eax, eax
je 0x100651e6
push esi
call fcn.10065b40
add esp, 4
test al, al
je 0x10064efc
push dword [esi + 0xd8]
push 0x100f1828
push esi
call fcn.100569f0
add esp, 0xc
mov edi, 0x16
test edi, edi
jne 0x100651eb
cmp dword [ebx + 0x50], 0x12c
mov ebp, dword [esp + 0x24]
jl 0x1006506b
cmp byte [ebp + 0x1f0], 0
jne case.default.0x10064f4d
cmp byte [ebp + 0x1e6], 0
jne case.default.0x10064f4d
cmp byte [esi + 0xd67], 0
jne 0x10065050
movzx eax, byte [esi + 0xd52]
dec eax
cmp eax, 3
ja case.default.0x10064f4d
jmp dword [eax*4 + 0x10065320]
push 0
push esi
call fcn.100466b0
add esp, 8
cmp byte [ebx + 0xb8], 0
jne case.default.0x10064f4d
cmp dword [ebx + 0x50], 0x1a1
jne 0x10064fe6
cmp byte [esi + 0xd5b], 0
je 0x10064fe6
mov eax, dword [ebx + 0x18]
or eax, dword [ebx + 0x1c]
jne 0x10064f9c
cmp dword [ebx + 0x68], 1
jne 0x10064f9c
push 0x100f224c
push esi
call fcn.10056ac0
add esp, 8
jmp 0x10064fc1
push 0x100f227c
push esi
call fcn.10056ac0
push 2
push ebp
call fcn.10057f50
push ebp
push esi
call fcn.10065920
add esp, 0x18
test eax, eax
jne 0x10065095
push dword [esi + 0xca4]
mov byte [esi + 0xd5c], 1
call dword [0x1011b0b8]
push ebx
push esi
mov dword [esi + 0x110], eax
call fcn.1005cb80
add esp, 0xc
jmp case.default.0x10064f4d
cmp byte [esi + 0x6c3], 0
je 0x10065010
push 0x100f22a4
push esi
call fcn.10056ac0
add esp, 8
cmp dword [ebx + 0x68], 0
jle case.default.0x10064f4d
or dword [ebx + 0x54], 2
mov dword [ebx + 0x68], 0
jmp case.default.0x10064f4d
push 0x100f22d0
push esi
call fcn.10056ac0
push 2
push ebp
call fcn.10057f50
push ebx
push esi
call fcn.1005cb80
add esp, 0x18
test eax, eax
jne 0x10065095
mov byte [ebx + 0xb8], 1
cmp byte [esi + 0xd5b], al
je case.default.0x10064f4d
mov dword [ebx + 0x68], 3
cmp byte [esi + 0xd67], 0
je 0x1006506b
cmp dword [ebp + 0x21c], 0xffffffff
je 0x1006506b
push 0x100f22fc
push esi
call fcn.10056ac0
add esp, 8
or dword [ebx + 0x54], 2
cmp byte [ebx + 0xb4], 0
je 0x100651f5
lea ebp, [esi + 0x8a8]
push ebp
call fcn.10046150
mov eax, dword [esp + 0x30]
add esp, 4
test eax, eax
jne 0x100643d5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 2
push edi
call fcn.10057f50
add esp, 8
cmp byte [esi + 0x6e5], 0
je 0x10065303
pop edi
pop esi
pop ebp
mov word [ebx + 0xb4], 0x100
xor eax, eax
pop ebx
add esp, 0xc
ret
push 0x100f2350
push esi
call fcn.100569f0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, 0x66666667
imul edx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x18]
lea eax, [ecx + ecx*4]
add eax, eax
sub edx, eax
push edx
push ecx
push 0x100f23a4
push esi
call fcn.100569f0
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x100f2378
push esi
call fcn.100569f0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x100f2324
push esi
call fcn.100569f0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov byte [ebx + 0xb4], 0
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, 0x100f2154
push eax
push esi
call fcn.100569f0
add esp, 8
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, 0x100f2140
push eax
push esi
call fcn.100569f0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0xc
ret
push 0x100f21b8
push esi
call fcn.10056ac0
add esp, 8
mov dword [ebx + 0x6c], 3
mov byte [ebx + 0xb4], 1
mov eax, 1
mov dword [ebx + 0x44], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x100ed690
push esi
call fcn.100569f0
add esp, 8
mov eax, 0x3f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edi, 0x1b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp byte [esi + 0x148], 0
jne 0x10065223
mov eax, dword [ebp + 0x200]
test dword [eax + 0x44], 0x40000
je 0x1006522a
cmp dword [esi + 0x654], 2
jne 0x1006522a
cmp dword [ebx + 4], 0xffffffff
jg 0x1006522a
jl 0x10065223
cmp dword [ebx], 0xffffffff
ja 0x1006522a
mov byte [ebx + 0xb7], 1
cmp dword [ebx + 8], 0
jne 0x1006523d
cmp dword [ebx + 0xc], 0
jne 0x1006523d
mov byte [ebx + 0xb7], 1
lea eax, [esi + 0x8a8]
push eax
call fcn.10046130
add esp, 4
push eax
lea eax, [esi + 0x8a8]
push eax
call fcn.10046140
add esp, 4
push eax
push 1
push esi
call fcn.10056950
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
push 0x100f1828
push esi
call fcn.100569f0
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edi, dword [esp + 0x2c]
push edi
push dword [esp + 0x2c]
push ebp
call fcn.100460d0
add esp, 0xc
test eax, eax
jne 0x10065095
mov eax, dword [esp + 0x30]
add dword [eax], edi
cmp dword [ebx + 0x44], 0
jne 0x10065093
push ebp
call fcn.10046130
add esp, 4
push eax
push ebp
call fcn.10046140
mov ebp, dword [esp + 0x2c]
add esp, 4
push eax
push ebp
push esi
call fcn.100658c0
add esp, 0x10
cmp eax, 2
jne 0x10065093
push eax
push ebp
mov word [ebx + 0xb4], 0x100
call fcn.10057f50
add esp, 8
cmp byte [esi + 0x6e5], 0
jne 0x10065093
push 0x100f2194
push esi
call fcn.100569f0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret