Function at 0x518850
Capabilities:
Parse credit card information

Disassembly:
push 0xffffffffffffffff
push 0x611e1a
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6ea244]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov dword [esp + 0x88], ecx
mov ebp, dword [esp + 0x120]
xor ebx, ebx
cmp ebp, ebx
je 0x51899d
mov eax, dword [esp + 0x124]
cmp eax, ebx
je 0x51899d
mov ecx, dword [0x6e2428]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x118], ebx
mov byte [esp + 0x2b], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x2a], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x60], 7
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], 0xc
mov dword [esp + 0x14], ebp
mov esi, eax
mov dword [esp + 0x54], eax
cmp word [eax], bx
je 0x519315
movzx eax, word [esi]
cmp ax, 0x25
je 0x5189bb
push eax
call fcn.005adbb2
add esp, 4
test eax, eax
je 0x518963
movzx edx, word [ebp]
push edx
call fcn.005adbb2
add esp, 4
test eax, eax
je case.0x518a44.90
movzx eax, word [ebp + 2]
add ebp, 2
push eax
call fcn.005adbb2
add esp, 4
test eax, eax
jne 0x518946
mov dword [esp + 0x14], ebp
jmp case.0x518a44.90
mov cx, word [ebp]
add ebp, 2
mov dword [esp + 0x14], ebp
cmp cx, word [esi]
je case.0x518a44.90
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x118], 0xffffffff
cmp eax, 0xffffffff
je 0x51899d
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51899d
call fcn.004fff70
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
movzx edx, word [esi + 2]
add esi, 2
push edx
xor edi, edi
mov dword [esp + 0x58], esi
call fcn.005adb9f
add esp, 4
test eax, eax
je 0x5189fb
movzx ecx, word [esi]
movzx edx, word [esi + 2]
add esi, 2
lea eax, [edi + edi*4]
push edx
lea edi, [ecx + eax*2 - 0x30]
call fcn.005adb9f
add esp, 4
test eax, eax
jne 0x5189d5
mov dword [esp + 0x54], esi
test edi, edi
jne 0x518a2e
movzx eax, word [esi]
add eax, 0xffffffa7
cmp eax, 0x1e
ja case.0x518a0d.90
movzx eax, byte [eax + 0x51969c]
jmp dword [eax*4 + 0x51968c]
mov edi, 4
jmp 0x518a2e
mov edi, 3
jmp 0x518a2e
mov edi, 1
jmp 0x518a2e
mov edi, 2
movzx eax, word [esi]
movzx ecx, ax
cmp ecx, 0x79
ja case.0x518a44.0
movzx ecx, byte [ecx + 0x519718]
jmp dword [ecx*4 + 0x5196bc]
xor edx, edx
cmp ax, 0x61
sete dl
lea eax, [esp + 0xe4]
push eax
lea esi, [esp + 0x18]
inc edx
mov ebp, edx
call fcn.00516090
push ebp
mov edi, eax
mov byte [esp + 0x120], 1
call fcn.00516b70
mov esi, eax
add esp, 8
lea ecx, [esp + 0xe4]
mov dword [esp + 0x60], esi
mov byte [esp + 0x118], 0
call fcn.00401017
cmp esi, 7
je 0x5193a8
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x2b], 1
jmp case.0x518a44.90
xor ecx, ecx
cmp ax, 0x62
sete cl
lea edx, [esp + 0xe8]
push edx
lea esi, [esp + 0x18]
inc ecx
mov ebp, ecx
call fcn.00516090
push ebp
mov edi, eax
mov byte [esp + 0x120], 2
call fcn.00516a60
mov esi, eax
add esp, 8
lea ecx, [esp + 0xe8]
mov dword [esp + 0x48], esi
mov byte [esp + 0x118], 0
call fcn.00401017
cmp esi, 0xc
je 0x5193a8
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x22], 1
jmp case.0x518a44.90
mov eax, dword [str._a__b__d__H:_M:_S__Y]
push 0x6e3340
push eax
or edi, 0xffffffff
push ebp
lea ecx, [esp + 0xb4]
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edi
call fcn.00518850
mov esi, eax
test esi, esi
jne 0x518b7a
push 0x6e3340
push str._x__X
push ebp
lea ecx, [esp + 0xb4]
call fcn.00518850
mov esi, eax
test esi, esi
jne 0x518b7a
push 0x6e3340
push str._X__x
push ebp
lea ecx, [esp + 0xb4]
call fcn.00518850
mov esi, eax
test esi, esi
je 0x519360
push 0
lea ecx, [esp + 0xd4]
call fcn.00515b60
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0xb0]
call fcn.00516550
movzx ecx, word [esp + 0x90]
movzx eax, word [esp + 0x92]
movzx edx, word [esp + 0x8e]
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0x40], ecx
movzx ecx, word [esp + 0x94]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x98]
mov ebp, esi
mov byte [esp + 0x1b], 1
mov byte [esp + 0x1a], 1
mov byte [esp + 0x19], 1
mov byte [esp + 0x23], 1
mov byte [esp + 0x22], 1
mov byte [esp + 0x2a], 1
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x14], ebp
jmp case.0x518a44.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.00515a80
add esp, 4
test al, al
je 0x5193a8
mov eax, dword [esp + 0x24]
lea ecx, [eax - 1]
cmp ecx, 0x1e
ja 0x5193a8
mov ebp, dword [esp + 0x14]
movzx edx, ax
mov byte [esp + 0x2a], 1
mov dword [esp + 0x50], edx
jmp case.0x518a44.90
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x18]
call fcn.00515a80
add esp, 4
test al, al
je 0x5193a8
mov eax, dword [esp + 0x24]
cmp eax, 0x17
ja 0x5193a8
mov ebp, dword [esp + 0x14]
movzx ecx, ax
mov byte [esp + 0x19], 1
mov dword [esp + 0x3c], ecx
jmp case.0x518a44.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.00515a80
add esp, 4
test al, al
je 0x5193a8
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x5193a8
cmp ecx, 0xc
ja 0x5193a8
mov ebp, dword [esp + 0x14]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 3
lea eax, [edx + edx*2]
add eax, eax
add eax, eax
sub ecx, eax
movzx ecx, cx
mov byte [esp + 0x19], 1
mov byte [esp + 0x39], 1
mov dword [esp + 0x3c], ecx
jmp case.0x518a44.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.00515a80
add esp, 4
test al, al
je 0x5193a8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5193a8
cmp eax, 0x16e
ja 0x5193a8
mov ebp, dword [esp + 0x14]
movzx eax, ax
mov byte [esp + 0x3b], 1
mov dword [esp + 0xb0], eax
jmp case.0x518a44.90
lea ecx, [esp + 0x24]
push ecx
lea esi, [esp + 0x18]
call fcn.00515a80
add esp, 4
test al, al
je 0x5193a8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5193a8
cmp eax, 0xc
ja 0x5193a8
mov ebp, dword [esp + 0x14]
dec eax
mov byte [esp + 0x22], 1
mov dword [esp + 0x48], eax
jmp case.0x518a44.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.00515a80
add esp, 4
test al, al
je 0x5193a8
mov eax, dword [esp + 0x24]
cmp eax, 0x3b
ja 0x5193a8
mov ebp, dword [esp + 0x14]
movzx eax, ax
mov byte [esp + 0x1a], 1
mov dword [esp + 0x40], eax
jmp case.0x518a44.90
mov eax, dword [0x6e2428]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x4c]
push ecx
lea esi, [esp + 0x18]
mov byte [esp + 0x11c], 4
call fcn.00516090
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x124], 5
call fcn.00515bd0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
cmp dword [ecx - 8], 0
jne 0x518dfc
mov edx, dword [esp + 0x2c]
cmp dword [edx - 8], 0
je 0x519375
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
call fcn.00500bc0
test eax, eax
jne 0x518e15
mov byte [esp + 0x3a], 1
jmp 0x518e2b
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x50]
call fcn.00500bc0
test eax, eax
jne 0x519375
lea ecx, [esp + 0x4c]
mov byte [esp + 0x118], 4
call fcn.00401017
lea ecx, [esp + 0x2c]
mov byte [esp + 0x118], 3
call fcn.00401017
lea ecx, [esp + 0x30]
mov byte [esp + 0x118], 0
call fcn.00401017
mov ebp, dword [esp + 0x14]
jmp case.0x518a44.90
push 0x6e3340
push str._I:_M:_S__p
or esi, 0xffffffff
push ebp
lea ecx, [esp + 0xcc]
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], esi
call fcn.00518850
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x5193c1
push 0
lea ecx, [esp + 0xe4]
mov byte [esp + 0x1f], 1
mov byte [esp + 0x1e], 1
mov byte [esp + 0x1d], 1
call fcn.00515b60
lea edx, [esp + 0xe0]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xc8]
call fcn.00516550
movzx ecx, word [esp + 0x6a]
movzx edx, word [esp + 0x68]
movzx eax, word [esp + 0x66]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
jmp case.0x518a44.90
push 0x6e3340
push str._H:_M
or esi, 0xffffffff
push ebp
lea ecx, [esp + 0xd4]
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd8], esi
call fcn.00518850
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x5193c1
push 0
lea ecx, [esp + 0xdc]
mov byte [esp + 0x1e], 1
mov byte [esp + 0x1d], 1
call fcn.00515b60
lea ecx, [esp + 0xd8]
push ecx
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0xd0]
call fcn.00516550
movzx eax, word [esp + 0x6a]
movzx ecx, word [esp + 0x68]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
jmp case.0x518a44.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.00515a80
add esp, 4
test al, al
je 0x5193a8
mov eax, dword [esp + 0x24]
cmp eax, 0x3d
ja 0x5193a8
mov ebp, dword [esp + 0x14]
movzx eax, ax
mov byte [esp + 0x1b], 1
mov dword [esp + 0x44], eax
jmp case.0x518a44.90
push 0x6e3340
push str._H:_M:_S
or esi, 0xffffffff
push ebp
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
call fcn.00518850
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x5193c1
push 0
lea ecx, [esp + 0xd8]
mov byte [esp + 0x1f], 1
mov byte [esp + 0x1e], 1
mov byte [esp + 0x1d], 1
call fcn.00515b60
lea ecx, [esp + 0xd4]
push ecx
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x88]
call fcn.00516550
movzx eax, word [esp + 0x6a]
movzx ecx, word [esp + 0x68]
movzx edx, word [esp + 0x66]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
jmp case.0x518a44.90
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x18]
call fcn.00515a80
add esp, 4
test al, al
je 0x5193a8
cmp dword [esp + 0x60], 6
jg 0x5193a8
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x2b], 1
mov dword [esp + 0x60], ecx
jmp case.0x518a44.90
or eax, 0xffffffff
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov eax, dword [0x6e2428]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xdc]
push edx
mov byte [esp + 0x11c], 7
call fcn.00516820
add esp, 4
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x11c], 8
call fcn.00500980
lea ecx, [esp + 0xdc]
mov byte [esp + 0x118], 7
call fcn.00401017
mov eax, dword [esp + 0x2c]
cmp dword [eax - 8], 0
jne 0x519125
call fcn.00516240
push eax
call fcn.00516420
add esp, 4
test al, al
jne 0x519109
call fcn.00516240
cmp eax, 6
je 0x519109
push str._m__d__y
lea ecx, [esp + 0x30]
call fcn.00501170
push str._d__m__y
jmp 0x51911c
push str._d__m__y
lea ecx, [esp + 0x30]
call fcn.00501170
push str._m__d__y
lea ecx, [esp + 0x34]
call fcn.00501170
mov ecx, dword [esp + 0x2c]
push 0x6e3340
push ecx
push ebp
lea ecx, [esp + 0xc0]
call fcn.00518850
mov esi, eax
test esi, esi
jne 0x51916c
mov eax, dword [esp + 0x30]
cmp dword [eax - 8], esi
je 0x5193d6
push 0x6e3340
push eax
push ebp
lea ecx, [esp + 0xc0]
call fcn.00518850
mov esi, eax
test esi, esi
je 0x5193d6
push 0
lea ecx, [esp + 0xc0]
call fcn.00515b60
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xbc]
call fcn.00516550
mov ecx, dword [esp + 0x70]
movzx edx, word [esp + 0x6c]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x48], ecx
mov ebp, esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x23], 1
mov byte [esp + 0x22], 1
mov byte [esp + 0x2a], 1
mov dword [esp + 0x50], edx
mov dword [esp + 0x14], ebp
mov byte [esp + 0x118], 6
call fcn.00401017
lea ecx, [esp + 0x2c]
mov byte [esp + 0x118], 0
call fcn.00401017
jmp case.0x518a44.90
push 0x6e3340
push 0x645768
or edi, 0xffffffff
push ebp
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
call fcn.00518850
mov esi, eax
test esi, esi
jne 0x519227
push 0x6e3340
push 0x645760
push ebp
lea ecx, [esp + 0x64]
call fcn.00518850
mov esi, eax
test esi, esi
je 0x519360
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1f], 1
mov byte [esp + 0x1e], 1
mov byte [esp + 0x1d], 1
call fcn.00515b60
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x60]
call fcn.00516550
movzx edx, word [esp + 0x6a]
movzx eax, word [esp + 0x68]
movzx ecx, word [esp + 0x66]
mov ebp, esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], ebp
jmp case.0x518a44.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.00515a80
add esp, 4
test al, al
je 0x5193a8
mov eax, dword [esp + 0x24]
cmp eax, 0x63
ja 0x5193a8
mov ebp, dword [esp + 0x14]
mov ecx, 0x1e
cmp ecx, eax
sbb ebx, ebx
and ebx, 0xffffff9c
movzx edx, ax
add ebx, 0x7d0
mov byte [esp + 0x23], 1
add ebx, edx
jmp case.0x518a44.90
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x18]
call fcn.00515a80
add esp, 4
test al, al
je 0x5193a8
movzx ebx, word [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x23], 1
jmp case.0x518a44.90
mov cx, word [ebp]
add ebp, 2
mov dword [esp + 0x14], ebp
cmp cx, 0x25
jne 0x5193a8
mov esi, dword [esp + 0x54]
add esi, 2
cmp word [esi], 0
mov dword [esp + 0x54], esi
jne 0x518917
lea ecx, [esp + 0x64]
call fcn.00515770
mov esi, dword [esp + 0x128]
mov edx, dword [esi]
mov ecx, dword [0x6e3340]
cmp edx, ecx
jne 0x519341
mov edx, dword [esi + 4]
mov eax, dword [0x6e3344]
cmp edx, eax
je 0x5193ed
push 0
lea ecx, [esp + 0x38]
call fcn.00515b60
lea eax, [esp + 0x34]
lea ecx, [esp + 0x8c]
push eax
push ecx
mov ecx, esi
jmp 0x51946a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x118], edi
call fcn.00401017
jmp 0x51899d
lea ecx, [esp + 0x4c]
mov byte [esp + 0x118], 4
call fcn.00401017
lea ecx, [esp + 0x2c]
mov byte [esp + 0x118], 3
call fcn.00401017
lea ecx, [esp + 0x30]
mov byte [esp + 0x118], 0
call fcn.00401017
lea ecx, [esp + 0x1c]
mov dword [esp + 0x118], 0xffffffff
call fcn.00401017
jmp 0x51899d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x118], esi
call fcn.00401017
jmp 0x51899d
lea ecx, [esp + 0x30]
mov byte [esp + 0x118], 6
call fcn.00401017
lea ecx, [esp + 0x2c]
jmp 0x51939b
mov edx, dword [esp + 0x88]
mov esi, dword [edx]
cmp esi, ecx
jne 0x519401
mov edx, dword [edx + 4]
cmp edx, eax
je 0x519422
push 0
lea ecx, [esp + 0x38]
call fcn.00515b60
lea eax, [esp + 0x34]
lea ecx, [esp + 0x8c]
push eax
push ecx
mov ecx, dword [esp + 0x90]
jmp 0x51946a
xor esi, esi
push esi
lea ecx, [esp + 0x38]
call fcn.00515b60
lea edx, [esp + 0xec]
push edx
call fcn.00515a50
add esp, 4
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
call fcn.00515d80
lea ecx, [esp + 0x58]
call fcn.005172d0
lea eax, [esp + 0x34]
lea ecx, [esp + 0x8c]
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.00516550
cmp byte [esp + 0x23], 0
mov ecx, 7
lea edi, [esp + 0x64]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea esi, [esp + 0x64]
lea edi, [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
mov esi, ebx
jne 0x51949e
mov esi, dword [esp + 0x9c]
cmp byte [esp + 0x22], 0
je 0x5194e8
cmp byte [esp + 0x2a], 0
je 0x5194e8
push 0
push esi
call fcn.00516da0
mov ecx, dword [esp + 0x50]
movzx eax, al
lea edx, [eax + eax*2]
lea eax, [ecx + edx*4]
movzx eax, word [eax*2 + 0x6e33c8]
mov edx, dword [esp + 0x58]
add esp, 8
cmp dx, ax
ja case.0x518a44.0
mov eax, ecx
mov word [esp + 0x94], dx
jmp 0x519597
cmp byte [esp + 0x3b], 0
je 0x519590
xor ebx, ebx
push ebx
push esi
call fcn.00516e30
mov edi, dword [esp + 0xb8]
add esp, 8
cmp di, ax
jbe 0x519533
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x118], 0xffffffff
cmp eax, 0xffffffff
je 0x51899d
dec eax
mov dword [ecx], eax
cmp eax, ebx
jmp 0x518996
push ebx
lea ecx, [esp + 0x38]
call fcn.00515b60
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
push 1
lea ecx, [esp + 0x9c]
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
call fcn.00517000
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x68]
push edx
push edi
lea ecx, [esp + 0x8c]
call fcn.005171a0
mov ecx, eax
call fcn.00516550
mov cx, word [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov word [esp + 0x94], cx
jmp 0x519597
mov eax, dword [esp + 0x98]
cmp byte [esp + 0x19], 0
je 0x5195be
cmp byte [esp + 0x39], 0
je 0x5195b1
cmp byte [esp + 0x3a], 0
je 0x5195b1
add dword [esp + 0x3c], 0xc
mov dx, word [esp + 0x3c]
mov word [esp + 0x92], dx
cmp byte [esp + 0x1a], 0
je 0x5195d2
mov cx, word [esp + 0x40]
mov word [esp + 0x90], cx
cmp byte [esp + 0x1b], 0
je 0x5195e6
mov dx, word [esp + 0x44]
mov word [esp + 0x8e], dx
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x8e]
push ecx
mov ecx, dword [esp + 0x94]
push edx
mov edx, dword [esp + 0x9a]
push ecx
push edx
push esi
mov esi, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0xac]
push eax
mov ecx, esi
call fcn.00517000
cmp byte [esp + 0x2b], 0
je 0x51965f
push 0
lea ecx, [esp + 0x38]
call fcn.00515b60
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x68]
push edx
mov ecx, esi
call fcn.00516550
mov esi, eax
cmp word [esi + 0x18], 7
jne 0x519651
mov ecx, esi
call fcn.00515810
movzx eax, word [esi + 0x18]
cmp eax, dword [esp + 0x60]
jne case.0x518a44.0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x118], 0xffffffff
cmp eax, 0xffffffff
je 0x519685
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x519685
call fcn.004fff70
mov eax, ebp
jmp 0x51899f