Function at 0x523cd4
Capabilities:
Parse credit card information

Disassembly:
push 0xffffffffffffffff
push 0x60ffda
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e377c]
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 0x523c5d
mov eax, dword [esp + 0x124]
cmp eax, ebx
je 0x523c5d
mov ecx, dword [0x6db93c]
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 0x5245d5
movzx eax, word [esi]
cmp ax, 0x25
je 0x523c7b
push eax
call fcn.005bc8fc
add esp, 4
test eax, eax
je 0x523c23
movzx edx, word [ebp]
push edx
call fcn.005bc8fc
add esp, 4
test eax, eax
je case.0x523d04.90
movzx eax, word [ebp + 2]
add ebp, 2
push eax
call fcn.005bc8fc
add esp, 4
test eax, eax
jne 0x523c06
mov dword [esp + 0x14], ebp
jmp case.0x523d04.90
mov cx, word [ebp]
add ebp, 2
mov dword [esp + 0x14], ebp
cmp cx, word [esi]
je case.0x523d04.90
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x118], 0xffffffff
cmp eax, 0xffffffff
je 0x523c5d
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x523c5d
call fcn.0050ec00
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.005bc8e9
add esp, 4
test eax, eax
je 0x523cbb
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.005bc8e9
add esp, 4
test eax, eax
jne 0x523c95
mov dword [esp + 0x54], esi
test edi, edi
jne 0x523cee
movzx eax, word [esi]
add eax, 0xffffffa7
cmp eax, 0x1e
ja case.0x523ccd.90
movzx eax, byte [eax + 0x52495c]
jmp dword [eax*4 + 0x52494c]
mov edi, 4
jmp 0x523cee
mov edi, 3
jmp 0x523cee
mov edi, 1
jmp 0x523cee
mov edi, 2
movzx eax, word [esi]
movzx ecx, ax
cmp ecx, 0x79
ja case.0x523d04.0
movzx ecx, byte [ecx + 0x5249d8]
jmp dword [ecx*4 + 0x52497c]
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.005212c0
push ebp
mov edi, eax
mov byte [esp + 0x120], 1
call fcn.00521e30
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 0x524668
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x2b], 1
jmp case.0x523d04.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.005212c0
push ebp
mov edi, eax
mov byte [esp + 0x120], 2
call fcn.00521d20
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 0x524668
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x22], 1
jmp case.0x523d04.90
mov eax, dword [str._a__b__d__H:_M:_S__Y]
push 0x6dbf00
push eax
or edi, 0xffffffff
push ebp
lea ecx, [esp + 0xb4]
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edi
call fcn.00523b10
mov esi, eax
test esi, esi
jne 0x523e3a
push 0x6dbf00
push str._x__X
push ebp
lea ecx, [esp + 0xb4]
call fcn.00523b10
mov esi, eax
test esi, esi
jne 0x523e3a
push 0x6dbf00
push str._X__x
push ebp
lea ecx, [esp + 0xb4]
call fcn.00523b10
mov esi, eax
test esi, esi
je 0x524620
push 0
lea ecx, [esp + 0xd4]
call fcn.00520d80
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0xb0]
call fcn.00521780
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.0x523d04.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.00520ca0
add esp, 4
test al, al
je 0x524668
mov eax, dword [esp + 0x24]
lea ecx, [eax - 1]
cmp ecx, 0x1e
ja 0x524668
mov ebp, dword [esp + 0x14]
movzx edx, ax
mov byte [esp + 0x2a], 1
mov dword [esp + 0x50], edx
jmp case.0x523d04.90
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x18]
call fcn.00520ca0
add esp, 4
test al, al
je 0x524668
mov eax, dword [esp + 0x24]
cmp eax, 0x17
ja 0x524668
mov ebp, dword [esp + 0x14]
movzx ecx, ax
mov byte [esp + 0x19], 1
mov dword [esp + 0x3c], ecx
jmp case.0x523d04.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.00520ca0
add esp, 4
test al, al
je 0x524668
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x524668
cmp ecx, 0xc
ja 0x524668
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.0x523d04.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.00520ca0
add esp, 4
test al, al
je 0x524668
mov eax, dword [esp + 0x24]
test eax, eax
je 0x524668
cmp eax, 0x16e
ja 0x524668
mov ebp, dword [esp + 0x14]
movzx eax, ax
mov byte [esp + 0x3b], 1
mov dword [esp + 0xb0], eax
jmp case.0x523d04.90
lea ecx, [esp + 0x24]
push ecx
lea esi, [esp + 0x18]
call fcn.00520ca0
add esp, 4
test al, al
je 0x524668
mov eax, dword [esp + 0x24]
test eax, eax
je 0x524668
cmp eax, 0xc
ja 0x524668
mov ebp, dword [esp + 0x14]
dec eax
mov byte [esp + 0x22], 1
mov dword [esp + 0x48], eax
jmp case.0x523d04.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.00520ca0
add esp, 4
test al, al
je 0x524668
mov eax, dword [esp + 0x24]
cmp eax, 0x3b
ja 0x524668
mov ebp, dword [esp + 0x14]
movzx eax, ax
mov byte [esp + 0x1a], 1
mov dword [esp + 0x40], eax
jmp case.0x523d04.90
mov eax, dword [0x6db93c]
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.005212c0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x124], 5
call fcn.00520df0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
cmp dword [ecx - 8], 0
jne 0x5240bc
mov edx, dword [esp + 0x2c]
cmp dword [edx - 8], 0
je 0x524635
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
call fcn.0050f850
test eax, eax
jne 0x5240d5
mov byte [esp + 0x3a], 1
jmp 0x5240eb
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x50]
call fcn.0050f850
test eax, eax
jne 0x524635
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.0x523d04.90
push 0x6dbf00
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.00523b10
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x524681
push 0
lea ecx, [esp + 0xe4]
mov byte [esp + 0x1f], 1
mov byte [esp + 0x1e], 1
mov byte [esp + 0x1d], 1
call fcn.00520d80
lea edx, [esp + 0xe0]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xc8]
call fcn.00521780
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.0x523d04.90
push 0x6dbf00
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.00523b10
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x524681
push 0
lea ecx, [esp + 0xdc]
mov byte [esp + 0x1e], 1
mov byte [esp + 0x1d], 1
call fcn.00520d80
lea ecx, [esp + 0xd8]
push ecx
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0xd0]
call fcn.00521780
movzx eax, word [esp + 0x6a]
movzx ecx, word [esp + 0x68]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
jmp case.0x523d04.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.00520ca0
add esp, 4
test al, al
je 0x524668
mov eax, dword [esp + 0x24]
cmp eax, 0x3d
ja 0x524668
mov ebp, dword [esp + 0x14]
movzx eax, ax
mov byte [esp + 0x1b], 1
mov dword [esp + 0x44], eax
jmp case.0x523d04.90
push 0x6dbf00
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.00523b10
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x524681
push 0
lea ecx, [esp + 0xd8]
mov byte [esp + 0x1f], 1
mov byte [esp + 0x1e], 1
mov byte [esp + 0x1d], 1
call fcn.00520d80
lea ecx, [esp + 0xd4]
push ecx
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x88]
call fcn.00521780
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.0x523d04.90
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x18]
call fcn.00520ca0
add esp, 4
test al, al
je 0x524668
cmp dword [esp + 0x60], 6
jg 0x524668
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x2b], 1
mov dword [esp + 0x60], ecx
jmp case.0x523d04.90
or eax, 0xffffffff
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov eax, dword [0x6db93c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xdc]
push edx
mov byte [esp + 0x11c], 7
call fcn.00521a50
add esp, 4
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x11c], 8
call fcn.0050f610
lea ecx, [esp + 0xdc]
mov byte [esp + 0x118], 7
call fcn.00401017
mov eax, dword [esp + 0x2c]
cmp dword [eax - 8], 0
jne 0x5243e5
call fcn.00521470
push eax
call fcn.00521650
add esp, 4
test al, al
jne 0x5243c9
call fcn.00521470
cmp eax, 6
je 0x5243c9
push str._m__d__y
lea ecx, [esp + 0x30]
call fcn.0050fe00
push str._d__m__y
jmp 0x5243dc
push str._d__m__y
lea ecx, [esp + 0x30]
call fcn.0050fe00
push str._m__d__y
lea ecx, [esp + 0x34]
call fcn.0050fe00
mov ecx, dword [esp + 0x2c]
push 0x6dbf00
push ecx
push ebp
lea ecx, [esp + 0xc0]
call fcn.00523b10
mov esi, eax
test esi, esi
jne 0x52442c
mov eax, dword [esp + 0x30]
cmp dword [eax - 8], esi
je 0x524696
push 0x6dbf00
push eax
push ebp
lea ecx, [esp + 0xc0]
call fcn.00523b10
mov esi, eax
test esi, esi
je 0x524696
push 0
lea ecx, [esp + 0xc0]
call fcn.00520d80
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xbc]
call fcn.00521780
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.0x523d04.90
push 0x6dbf00
push 0x640ec8
or edi, 0xffffffff
push ebp
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
call fcn.00523b10
mov esi, eax
test esi, esi
jne 0x5244e7
push 0x6dbf00
push 0x640ec0
push ebp
lea ecx, [esp + 0x64]
call fcn.00523b10
mov esi, eax
test esi, esi
je 0x524620
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1f], 1
mov byte [esp + 0x1e], 1
mov byte [esp + 0x1d], 1
call fcn.00520d80
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x60]
call fcn.00521780
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.0x523d04.90
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x18]
call fcn.00520ca0
add esp, 4
test al, al
je 0x524668
mov eax, dword [esp + 0x24]
cmp eax, 0x63
ja 0x524668
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.0x523d04.90
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x18]
call fcn.00520ca0
add esp, 4
test al, al
je 0x524668
movzx ebx, word [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x23], 1
jmp case.0x523d04.90
mov cx, word [ebp]
add ebp, 2
mov dword [esp + 0x14], ebp
cmp cx, 0x25
jne 0x524668
mov esi, dword [esp + 0x54]
add esi, 2
cmp word [esi], 0
mov dword [esp + 0x54], esi
jne 0x523bd7
lea ecx, [esp + 0x64]
call fcn.00520990
mov esi, dword [esp + 0x128]
mov edx, dword [esi]
mov ecx, dword [0x6dbf00]
cmp edx, ecx
jne 0x524601
mov edx, dword [esi + 4]
mov eax, dword [0x6dbf04]
cmp edx, eax
je 0x5246ad
push 0
lea ecx, [esp + 0x38]
call fcn.00520d80
lea eax, [esp + 0x34]
lea ecx, [esp + 0x8c]
push eax
push ecx
mov ecx, esi
jmp 0x52472a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x118], edi
call fcn.00401017
jmp 0x523c5d
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 0x523c5d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x118], esi
call fcn.00401017
jmp 0x523c5d
lea ecx, [esp + 0x30]
mov byte [esp + 0x118], 6
call fcn.00401017
lea ecx, [esp + 0x2c]
jmp 0x52465b
mov edx, dword [esp + 0x88]
mov esi, dword [edx]
cmp esi, ecx
jne 0x5246c1
mov edx, dword [edx + 4]
cmp edx, eax
je 0x5246e2
push 0
lea ecx, [esp + 0x38]
call fcn.00520d80
lea eax, [esp + 0x34]
lea ecx, [esp + 0x8c]
push eax
push ecx
mov ecx, dword [esp + 0x90]
jmp 0x52472a
xor esi, esi
push esi
lea ecx, [esp + 0x38]
call fcn.00520d80
lea edx, [esp + 0xec]
push edx
call fcn.00520c70
add esp, 4
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
call fcn.00520fa0
lea ecx, [esp + 0x58]
call fcn.00522590
lea eax, [esp + 0x34]
lea ecx, [esp + 0x8c]
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.00521780
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 0x52475e
mov esi, dword [esp + 0x9c]
cmp byte [esp + 0x22], 0
je 0x5247a8
cmp byte [esp + 0x2a], 0
je 0x5247a8
push 0
push esi
call fcn.00522060
mov ecx, dword [esp + 0x50]
movzx eax, al
lea edx, [eax + eax*2]
lea eax, [ecx + edx*4]
movzx eax, word [eax*2 + 0x6dbf88]
mov edx, dword [esp + 0x58]
add esp, 8
cmp dx, ax
ja case.0x523d04.0
mov eax, ecx
mov word [esp + 0x94], dx
jmp 0x524857
cmp byte [esp + 0x3b], 0
je 0x524850
xor ebx, ebx
push ebx
push esi
call fcn.005220f0
mov edi, dword [esp + 0xb8]
add esp, 8
cmp di, ax
jbe 0x5247f3
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x118], 0xffffffff
cmp eax, 0xffffffff
je 0x523c5d
dec eax
mov dword [ecx], eax
cmp eax, ebx
jmp 0x523c56
push ebx
lea ecx, [esp + 0x38]
call fcn.00520d80
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.005222c0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x68]
push edx
push edi
lea ecx, [esp + 0x8c]
call fcn.00522460
mov ecx, eax
call fcn.00521780
mov cx, word [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov word [esp + 0x94], cx
jmp 0x524857
mov eax, dword [esp + 0x98]
cmp byte [esp + 0x19], 0
je 0x52487e
cmp byte [esp + 0x39], 0
je 0x524871
cmp byte [esp + 0x3a], 0
je 0x524871
add dword [esp + 0x3c], 0xc
mov dx, word [esp + 0x3c]
mov word [esp + 0x92], dx
cmp byte [esp + 0x1a], 0
je 0x524892
mov cx, word [esp + 0x40]
mov word [esp + 0x90], cx
cmp byte [esp + 0x1b], 0
je 0x5248a6
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.005222c0
cmp byte [esp + 0x2b], 0
je 0x52491f
push 0
lea ecx, [esp + 0x38]
call fcn.00520d80
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x68]
push edx
mov ecx, esi
call fcn.00521780
mov esi, eax
cmp word [esi + 0x18], 7
jne 0x524911
mov ecx, esi
call fcn.00520a30
movzx eax, word [esi + 0x18]
cmp eax, dword [esp + 0x60]
jne case.0x523d04.0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x118], 0xffffffff
cmp eax, 0xffffffff
je 0x524945
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x524945
call fcn.0050ec00
mov eax, ebp
jmp 0x523c5f