Function at 0x521e54
Capabilities:
Parse credit card information

Disassembly:
push 0xffffffffffffffff
push 0x60d6aa
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e163c]
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 0x521ddd
mov eax, dword [esp + 0x124]
cmp eax, ebx
je 0x521ddd
mov ecx, dword [0x6d983c]
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 0x522755
movzx eax, word [esi]
cmp ax, 0x25
je 0x521dfb
push eax
call fcn.005b995b
add esp, 4
test eax, eax
je 0x521da3
movzx edx, word [ebp]
push edx
call fcn.005b995b
add esp, 4
test eax, eax
je case.0x521e84.90
movzx eax, word [ebp + 2]
add ebp, 2
push eax
call fcn.005b995b
add esp, 4
test eax, eax
jne 0x521d86
mov dword [esp + 0x14], ebp
jmp case.0x521e84.90
mov cx, word [ebp]
add ebp, 2
mov dword [esp + 0x14], ebp
cmp cx, word [esi]
je case.0x521e84.90
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x118], 0xffffffff
cmp eax, 0xffffffff
je 0x521ddd
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x521ddd
call fcn.0050ccc0
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.005b9948
add esp, 4
test eax, eax
je 0x521e3b
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.005b9948
add esp, 4
test eax, eax
jne 0x521e15
mov dword [esp + 0x54], esi
test edi, edi
jne 0x521e6e
movzx eax, word [esi]
add eax, 0xffffffa7
cmp eax, 0x1e
ja case.0x521e4d.90
movzx eax, byte [eax + 0x522adc]
jmp dword [eax*4 + 0x522acc]
mov edi, 4
jmp 0x521e6e
mov edi, 3
jmp 0x521e6e
mov edi, 1
jmp 0x521e6e
mov edi, 2
movzx eax, word [esi]
movzx ecx, ax
cmp ecx, 0x79
ja case.0x521e84.0
movzx ecx, byte [ecx + 0x522b58]
jmp dword [ecx*4 + 0x522afc]
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.0051f440
push ebp
mov edi, eax
mov byte [esp + 0x120], 1
call fcn.0051ffb0
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 0x5227e8
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x2b], 1
jmp case.0x521e84.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.0051f440
push ebp
mov edi, eax
mov byte [esp + 0x120], 2
call fcn.0051fea0
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 0x5227e8
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x22], 1
jmp case.0x521e84.90
mov eax, dword [str._a__b__d__H:_M:_S__Y]
push 0x6d9e00
push eax
or edi, 0xffffffff
push ebp
lea ecx, [esp + 0xb4]
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edi
call fcn.00521c90
mov esi, eax
test esi, esi
jne 0x521fba
push 0x6d9e00
push str._x__X
push ebp
lea ecx, [esp + 0xb4]
call fcn.00521c90
mov esi, eax
test esi, esi
jne 0x521fba
push 0x6d9e00
push str._X__x
push ebp
lea ecx, [esp + 0xb4]
call fcn.00521c90
mov esi, eax
test esi, esi
je 0x5227a0
push 0
lea ecx, [esp + 0xd4]
call fcn.0051ef10
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0xb0]
call fcn.0051f900
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.0x521e84.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.0051ee30
add esp, 4
test al, al
je 0x5227e8
mov eax, dword [esp + 0x24]
lea ecx, [eax - 1]
cmp ecx, 0x1e
ja 0x5227e8
mov ebp, dword [esp + 0x14]
movzx edx, ax
mov byte [esp + 0x2a], 1
mov dword [esp + 0x50], edx
jmp case.0x521e84.90
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x18]
call fcn.0051ee30
add esp, 4
test al, al
je 0x5227e8
mov eax, dword [esp + 0x24]
cmp eax, 0x17
ja 0x5227e8
mov ebp, dword [esp + 0x14]
movzx ecx, ax
mov byte [esp + 0x19], 1
mov dword [esp + 0x3c], ecx
jmp case.0x521e84.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.0051ee30
add esp, 4
test al, al
je 0x5227e8
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x5227e8
cmp ecx, 0xc
ja 0x5227e8
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.0x521e84.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.0051ee30
add esp, 4
test al, al
je 0x5227e8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5227e8
cmp eax, 0x16e
ja 0x5227e8
mov ebp, dword [esp + 0x14]
movzx eax, ax
mov byte [esp + 0x3b], 1
mov dword [esp + 0xb0], eax
jmp case.0x521e84.90
lea ecx, [esp + 0x24]
push ecx
lea esi, [esp + 0x18]
call fcn.0051ee30
add esp, 4
test al, al
je 0x5227e8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5227e8
cmp eax, 0xc
ja 0x5227e8
mov ebp, dword [esp + 0x14]
dec eax
mov byte [esp + 0x22], 1
mov dword [esp + 0x48], eax
jmp case.0x521e84.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.0051ee30
add esp, 4
test al, al
je 0x5227e8
mov eax, dword [esp + 0x24]
cmp eax, 0x3b
ja 0x5227e8
mov ebp, dword [esp + 0x14]
movzx eax, ax
mov byte [esp + 0x1a], 1
mov dword [esp + 0x40], eax
jmp case.0x521e84.90
mov eax, dword [0x6d983c]
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.0051f440
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x124], 5
call fcn.0051ef80
mov ecx, dword [esp + 0x3c]
add esp, 0xc
cmp dword [ecx - 8], 0
jne 0x52223c
mov edx, dword [esp + 0x2c]
cmp dword [edx - 8], 0
je 0x5227b5
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
call fcn.0050d910
test eax, eax
jne 0x522255
mov byte [esp + 0x3a], 1
jmp 0x52226b
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x50]
call fcn.0050d910
test eax, eax
jne 0x5227b5
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.0x521e84.90
push 0x6d9e00
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.00521c90
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x522801
push 0
lea ecx, [esp + 0xe4]
mov byte [esp + 0x1f], 1
mov byte [esp + 0x1e], 1
mov byte [esp + 0x1d], 1
call fcn.0051ef10
lea edx, [esp + 0xe0]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xc8]
call fcn.0051f900
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.0x521e84.90
push 0x6d9e00
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.00521c90
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x522801
push 0
lea ecx, [esp + 0xdc]
mov byte [esp + 0x1e], 1
mov byte [esp + 0x1d], 1
call fcn.0051ef10
lea ecx, [esp + 0xd8]
push ecx
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0xd0]
call fcn.0051f900
movzx eax, word [esp + 0x6a]
movzx ecx, word [esp + 0x68]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
jmp case.0x521e84.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.0051ee30
add esp, 4
test al, al
je 0x5227e8
mov eax, dword [esp + 0x24]
cmp eax, 0x3d
ja 0x5227e8
mov ebp, dword [esp + 0x14]
movzx eax, ax
mov byte [esp + 0x1b], 1
mov dword [esp + 0x44], eax
jmp case.0x521e84.90
push 0x6d9e00
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.00521c90
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x522801
push 0
lea ecx, [esp + 0xd8]
mov byte [esp + 0x1f], 1
mov byte [esp + 0x1e], 1
mov byte [esp + 0x1d], 1
call fcn.0051ef10
lea ecx, [esp + 0xd4]
push ecx
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x88]
call fcn.0051f900
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.0x521e84.90
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x18]
call fcn.0051ee30
add esp, 4
test al, al
je 0x5227e8
cmp dword [esp + 0x60], 6
jg 0x5227e8
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x2b], 1
mov dword [esp + 0x60], ecx
jmp case.0x521e84.90
or eax, 0xffffffff
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov eax, dword [0x6d983c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xdc]
push edx
mov byte [esp + 0x11c], 7
call fcn.0051fbd0
add esp, 4
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x11c], 8
call fcn.0050d6d0
lea ecx, [esp + 0xdc]
mov byte [esp + 0x118], 7
call fcn.00401017
mov eax, dword [esp + 0x2c]
cmp dword [eax - 8], 0
jne 0x522565
call fcn.0051f5f0
push eax
call fcn.0051f7d0
add esp, 4
test al, al
jne 0x522549
call fcn.0051f5f0
cmp eax, 6
je 0x522549
push str._m__d__y
lea ecx, [esp + 0x30]
call fcn.0050dec0
push str._d__m__y
jmp 0x52255c
push str._d__m__y
lea ecx, [esp + 0x30]
call fcn.0050dec0
push str._m__d__y
lea ecx, [esp + 0x34]
call fcn.0050dec0
mov ecx, dword [esp + 0x2c]
push 0x6d9e00
push ecx
push ebp
lea ecx, [esp + 0xc0]
call fcn.00521c90
mov esi, eax
test esi, esi
jne 0x5225ac
mov eax, dword [esp + 0x30]
cmp dword [eax - 8], esi
je 0x522816
push 0x6d9e00
push eax
push ebp
lea ecx, [esp + 0xc0]
call fcn.00521c90
mov esi, eax
test esi, esi
je 0x522816
push 0
lea ecx, [esp + 0xc0]
call fcn.0051ef10
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xbc]
call fcn.0051f900
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.0x521e84.90
push 0x6d9e00
push 0x63ed80
or edi, 0xffffffff
push ebp
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
call fcn.00521c90
mov esi, eax
test esi, esi
jne 0x522667
push 0x6d9e00
push 0x63ed78
push ebp
lea ecx, [esp + 0x64]
call fcn.00521c90
mov esi, eax
test esi, esi
je 0x5227a0
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1f], 1
mov byte [esp + 0x1e], 1
mov byte [esp + 0x1d], 1
call fcn.0051ef10
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x60]
call fcn.0051f900
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.0x521e84.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.0051ee30
add esp, 4
test al, al
je 0x5227e8
mov eax, dword [esp + 0x24]
cmp eax, 0x63
ja 0x5227e8
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.0x521e84.90
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x18]
call fcn.0051ee30
add esp, 4
test al, al
je 0x5227e8
movzx ebx, word [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x23], 1
jmp case.0x521e84.90
mov cx, word [ebp]
add ebp, 2
mov dword [esp + 0x14], ebp
cmp cx, 0x25
jne 0x5227e8
mov esi, dword [esp + 0x54]
add esi, 2
cmp word [esi], 0
mov dword [esp + 0x54], esi
jne 0x521d57
lea ecx, [esp + 0x64]
call fcn.0051eb20
mov esi, dword [esp + 0x128]
mov edx, dword [esi]
mov ecx, dword [0x6d9e00]
cmp edx, ecx
jne 0x522781
mov edx, dword [esi + 4]
mov eax, dword [0x6d9e04]
cmp edx, eax
je 0x52282d
push 0
lea ecx, [esp + 0x38]
call fcn.0051ef10
lea eax, [esp + 0x34]
lea ecx, [esp + 0x8c]
push eax
push ecx
mov ecx, esi
jmp 0x5228aa
lea ecx, [esp + 0x1c]
mov dword [esp + 0x118], edi
call fcn.00401017
jmp 0x521ddd
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 0x521ddd
lea ecx, [esp + 0x1c]
mov dword [esp + 0x118], esi
call fcn.00401017
jmp 0x521ddd
lea ecx, [esp + 0x30]
mov byte [esp + 0x118], 6
call fcn.00401017
lea ecx, [esp + 0x2c]
jmp 0x5227db
mov edx, dword [esp + 0x88]
mov esi, dword [edx]
cmp esi, ecx
jne 0x522841
mov edx, dword [edx + 4]
cmp edx, eax
je 0x522862
push 0
lea ecx, [esp + 0x38]
call fcn.0051ef10
lea eax, [esp + 0x34]
lea ecx, [esp + 0x8c]
push eax
push ecx
mov ecx, dword [esp + 0x90]
jmp 0x5228aa
xor esi, esi
push esi
lea ecx, [esp + 0x38]
call fcn.0051ef10
lea edx, [esp + 0xec]
push edx
call fcn.0051ee00
add esp, 4
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
call fcn.0051f130
lea ecx, [esp + 0x58]
call fcn.00520710
lea eax, [esp + 0x34]
lea ecx, [esp + 0x8c]
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.0051f900
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 0x5228de
mov esi, dword [esp + 0x9c]
cmp byte [esp + 0x22], 0
je 0x522928
cmp byte [esp + 0x2a], 0
je 0x522928
push 0
push esi
call fcn.005201e0
mov ecx, dword [esp + 0x50]
movzx eax, al
lea edx, [eax + eax*2]
lea eax, [ecx + edx*4]
movzx eax, word [eax*2 + 0x6d9e88]
mov edx, dword [esp + 0x58]
add esp, 8
cmp dx, ax
ja case.0x521e84.0
mov eax, ecx
mov word [esp + 0x94], dx
jmp 0x5229d7
cmp byte [esp + 0x3b], 0
je 0x5229d0
xor ebx, ebx
push ebx
push esi
call fcn.00520270
mov edi, dword [esp + 0xb8]
add esp, 8
cmp di, ax
jbe 0x522973
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x118], 0xffffffff
cmp eax, 0xffffffff
je 0x521ddd
dec eax
mov dword [ecx], eax
cmp eax, ebx
jmp 0x521dd6
push ebx
lea ecx, [esp + 0x38]
call fcn.0051ef10
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.00520440
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x68]
push edx
push edi
lea ecx, [esp + 0x8c]
call fcn.005205e0
mov ecx, eax
call fcn.0051f900
mov cx, word [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov word [esp + 0x94], cx
jmp 0x5229d7
mov eax, dword [esp + 0x98]
cmp byte [esp + 0x19], 0
je 0x5229fe
cmp byte [esp + 0x39], 0
je 0x5229f1
cmp byte [esp + 0x3a], 0
je 0x5229f1
add dword [esp + 0x3c], 0xc
mov dx, word [esp + 0x3c]
mov word [esp + 0x92], dx
cmp byte [esp + 0x1a], 0
je 0x522a12
mov cx, word [esp + 0x40]
mov word [esp + 0x90], cx
cmp byte [esp + 0x1b], 0
je 0x522a26
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.00520440
cmp byte [esp + 0x2b], 0
je 0x522a9f
push 0
lea ecx, [esp + 0x38]
call fcn.0051ef10
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x68]
push edx
mov ecx, esi
call fcn.0051f900
mov esi, eax
cmp word [esi + 0x18], 7
jne 0x522a91
mov ecx, esi
call fcn.0051ebc0
movzx eax, word [esi + 0x18]
cmp eax, dword [esp + 0x60]
jne case.0x521e84.0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x118], 0xffffffff
cmp eax, 0xffffffff
je 0x522ac5
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x522ac5
call fcn.0050ccc0
mov eax, ebp
jmp 0x521ddf