Function at 0x401380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x39c
push ebx
push ebp
push esi
push edi
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x40]
xor edx, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x3b4]
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x30], ebp
cmp eax, edx
mov byte [esp + 0x10], dl
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], dl
mov byte [esp + 0x23], dl
mov byte [esp + 0x19], dl
mov byte [esp + 0x1b], dl
mov byte [esp + 0x13], dl
mov dword [esp + 0x74], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], edx
mov byte [esp + 0x1a], dl
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], edx
jle 0x4020a0
mov ebx, dword [esp + 0x3b8]
mov ecx, dword [esp + 0x3b0]
mov eax, dword [esp + 0x34]
cmp esi, 3
mov cl, byte [edx + ecx]
mov byte [esp + 0x2c], cl
jne 0x40142d
test eax, eax
jne 0x40141f
cmp cl, 0x20
je 0x40142d
jmp 0x401424
cmp eax, 0x32
jge 0x40142d
mov byte [esp + eax + 0x40], cl
inc eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
mov edx, eax
and edx, 0xff
lea edi, [edx - 9]
cmp edi, 0x5d
ja case.0x40144d.13
xor edx, edx
mov dl, byte [edi + 0x4020c4]
jmp dword [edx*4 + 0x4020b0]
test esi, esi
jne 0x40146b
mov al, byte [esp + 0x10]
test al, al
je case.0x401591.3
mov esi, 1
jmp 0x401474
cmp esi, 1
jne case.0x401591.3
mov al, byte [esp + 0x11]
test al, al
je case.0x401591.3
mov esi, 2
jmp case.0x401591.3
mov al, byte [esp + 0x1a]
test al, al
jne 0x4014fa
cmp ebx, 9
jne 0x4014e4
test esi, esi
jne case.0x401591.3
mov al, byte [esp + 0x10]
test al, al
je case.0x401591.3
mov eax, dword [esp + 0x14]
and eax, 0xff0000
cmp eax, 0xd0000
je case.0x401591.3
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x10], 0
mov ebx, 8
mov dword [esp + 0x74], ecx
mov dword [esp + 0x14], esi
mov byte [esp + 0x23], 1
mov byte [esp + 0x1a], 1
jmp case.0x401591.3
cmp ebx, 6
jne case.0x401591.3
mov byte [esp + ebp + 0xac], cl
inc ebp
jmp case.0x401591.3
cmp ebx, 8
jne case.0x401591.3
test esi, esi
jne 0x40151a
mov al, byte [esp + 0x10]
test al, al
je case.0x401591.3
mov esi, 4
jmp 0x40151f
cmp esi, 4
jne 0x401532
mov al, byte [esp + 0x19]
test al, al
je case.0x401591.3
mov esi, 5
jmp 0x401537
cmp esi, 5
jne 0x40154a
mov al, byte [esp + 0x1b]
test al, al
je case.0x401591.3
mov esi, 6
jmp 0x401553
cmp esi, 6
jne case.0x401591.3
mov al, byte [esp + 0x13]
test al, al
je case.0x401591.3
mov esi, 2
jmp case.0x401591.3
cmp esi, 2
jne case.0x401591.3
mov al, byte [esp + 0x12]
test al, al
je case.0x401591.3
mov esi, 3
jmp case.0x401591.3
cmp esi, 6
ja case.0x401591.3
jmp dword [esi*4 + 0x402124]
push eax
call fcn.00401330
mov edx, dword [esp + 0x18]
add esp, 4
shl edx, 4
add eax, edx
mov byte [esp + 0x10], 1
mov dword [esp + 0x14], eax
jmp case.0x401591.3
cmp ebx, 6
je 0x4015c6
cmp ebx, 1
jne 0x4015ce
test ebp, ebp
jle 0x4015ce
mov byte [esp + ebp + 0xac], cl
inc ebp
push eax
call fcn.00401330
mov ecx, dword [esp + 0x20]
add esp, 4
shl ecx, 4
add eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x40166d
mov eax, dword [esp + 0x24]
mov byte [esp + 0x12], 1
mov byte [esp + eax + 0x1a8], cl
inc eax
mov dword [esp + 0x24], eax
jmp case.0x401591.3
push eax
call fcn.00401330
mov edx, dword [esp + 0x40]
add esp, 4
shl edx, 4
add eax, edx
mov byte [esp + 0x19], 1
mov dword [esp + 0x3c], eax
jmp case.0x401591.3
push eax
call fcn.00401330
mov ecx, dword [esp + 0x3c]
add esp, 4
shl ecx, 4
add eax, ecx
mov byte [esp + 0x1b], 1
mov dword [esp + 0x38], eax
jmp case.0x401591.3
push eax
call fcn.00401330
mov edx, dword [esp + 0x2c]
add esp, 4
shl edx, 4
add eax, edx
mov byte [esp + 0x13], 1
mov dword [esp + 0x28], eax
jmp case.0x401591.3
cmp esi, 1
jne case.0x401591.3
cmp ebx, 6
je 0x401665
cmp ebx, esi
jne case.0x401591.3
mov byte [esp + ebp + 0xac], cl
inc ebp
mov byte [esp + 0x11], 1
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x3b4]
inc edx
cmp edx, eax
mov dword [esp + 0x30], edx
jl 0x4013fd
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
cmp eax, 0x7c00
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3b8], ebx
jne 0x4016d6
cmp edx, 1
jne 0x4016d6
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jae 0x4016d6
push str.TPS_AESKey
lea eax, [esp + 0x44]
push 0x445548
push eax
call fcn.0040d7c8
mov edx, dword [esp + 0x28]
add esp, 0xc
mov al, byte [esp + 0x10]
test al, al
je 0x401f96
mov cl, byte [esp + 0x11]
test cl, cl
je 0x401f96
mov cl, byte [esp + 0x12]
test cl, cl
je 0x401f96
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jne 0x401a91
cmp ebx, 6
jne 0x40174c
mov esi, dword [0x549e90]
xor edi, edi
lea ebp, [esp + 0x1a9]
mov cl, byte [ebp - 1]
push ecx
call fcn.00401330
mov dl, byte [ebp]
mov ebx, eax
push edx
shl bl, 4
call fcn.00401330
add bl, al
lea eax, [esi + esi*4]
add esp, 8
add ebp, 2
mov byte [edi + eax*8 + 0x5493a4], bl
inc edi
cmp edi, 8
jl 0x40171b
jmp 0x4017bd
mov ecx, dword [esp + 0x3b8]
xor edi, edi
lea ebp, [esp + 0x1a9]
lea eax, [ecx + ecx*8]
shl eax, 2
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
shl eax, 2
mov esi, dword [eax + 0x54ffa0]
mov ecx, esi
imul ecx, ecx, 0x1c
lea edx, [ecx + eax + 0x54e9c4]
mov dword [esp + 0x2c], edx
mov al, byte [ebp - 1]
push eax
call fcn.00401330
mov cl, byte [ebp]
mov ebx, eax
push ecx
shl bl, 4
call fcn.00401330
mov edx, dword [esp + 0x34]
add bl, al
add esp, 8
add ebp, 2
mov byte [edi + edx], bl
inc edi
cmp edi, 8
jl 0x401783
cmp dword [esp + 0x3b8], 6
ja case.default.0x4017c4
mov eax, dword [esp + 0x3b8]
jmp dword [eax*4 + 0x402140]
mov edx, 0xc8
jmp 0x401a17
mov edx, 0x32
jmp 0x401a17
mov edx, 0x96
jmp 0x401a17
mov dword [esp + 0x28], 0x46
jmp 0x401801
cmp dword [esp + 0x3b8], 6
jne case.default.0x4017c4
mov ecx, dword [esp + 0x14]
mov dl, byte [esp + 0x1c]
lea ebx, [esi + esi*4]
mov ebp, dword [esp + 0x30]
shl ebx, 3
mov dword [ebx + 0x5493a0], ecx
mov ecx, dword [esp + 0x40]
mov byte [ebx + 0x5493ac], dl
xor edx, edx
mov word [ebx + 0x5493bc], dx
mov word [ebx + 0x5493be], dx
lea eax, [ebx + 0x5493ad]
mov byte [ebx + 0x5493c0], dl
mov word [ebx + 0x5493c4], dx
cmp ebp, 7
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 8], ecx
mov cx, word [esp + 0x4c]
mov word [eax + 0xc], cx
mov byte [ebx + 0x5493bb], dl
jle 0x4019e3
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x78]
xor esi, esi
rep stosd dword es:[edi], eax
test ebp, ebp
stosw word es:[edi], ax
jle 0x4018ab
lea ecx, [esp + 0x78]
lea eax, [esp + 0xac]
sub ecx, eax
mov al, byte [esp + esi + 0xac]
cmp al, 0x3a
je 0x4018ab
lea edi, [ecx + esi]
inc edx
inc esi
cmp esi, ebp
mov byte [esp + edi + 0xac], al
jl 0x401890
test edx, edx
mov byte [ebx + 0x5493ac], 0
je 0x4018ca
lea ecx, [esp + 0x78]
push ecx
call fcn.0040d7bd
add esp, 4
mov word [ebx + 0x5493bc], ax
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x78]
inc esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
cmp esi, ebp
jge 0x40190e
mov cl, byte [esp + esi + 0xac]
cmp cl, 0x3a
je 0x4018f6
mov byte [esp + eax + 0x78], cl
inc eax
inc esi
cmp esi, ebp
jl 0x4018e0
test eax, eax
jle 0x40190e
lea edx, [esp + 0x78]
push edx
call fcn.0040d7bd
add esp, 4
mov word [ebx + 0x5493be], ax
mov al, byte [esp + esi + 0xad]
inc esi
cmp al, 0x48
je 0x401927
cmp al, 0x68
je 0x401927
mov byte [ebx + 0x5493c0], 1
jmp 0x40192e
mov byte [ebx + 0x5493c0], 0
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x78]
add esi, 2
rep stosd dword es:[edi], eax
xor edx, edx
cmp esi, ebp
stosw word es:[edi], ax
jge 0x401972
mov al, byte [esp + esi + 0xac]
cmp al, 0x3a
je 0x40195b
mov byte [esp + edx + 0x78], al
inc edx
inc esi
cmp esi, ebp
jl 0x401946
test edx, edx
jle 0x401972
lea eax, [esp + 0x78]
push eax
call fcn.0040d7bd
add esp, 4
mov byte [ebx + 0x5493ac], al
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x78]
inc esi
rep stosd dword es:[edi], eax
xor edx, edx
cmp esi, ebp
mov dword [esp + 0x24], edx
stosw word es:[edi], ax
jge 0x4019e3
mov al, byte [esp + esi + 0xac]
cmp al, 0x3a
je 0x4019a1
mov byte [esp + edx + 0x78], al
inc edx
inc esi
cmp esi, ebp
jl 0x40198c
test edx, edx
mov dword [esp + 0x24], edx
jle 0x4019e3
xor esi, esi
test edx, edx
jle 0x4019e3
cmp esi, 4
jge 0x4019e3
mov cx, word [ebx + 0x5493c4]
mov dl, byte [esp + esi + 0x78]
shl cx, 4
push edx
mov word [ebx + 0x5493c4], cx
call fcn.00401330
add word [ebx + 0x5493c4], ax
mov eax, dword [esp + 0x28]
add esp, 4
inc esi
cmp esi, eax
jl 0x4019af
mov eax, dword [0x549e90]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jge 0x4020a0
dec ecx
cmp eax, ecx
jge 0x4020a0
inc eax
pop edi
pop esi
mov dword [0x549e90], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x39c
ret
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x3b8]
imul esi, esi, 0x1c
lea eax, [ecx + ecx*8]
shl eax, 2
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 0x14]
shl eax, 2
add esi, eax
dec edx
mov dword [esi + 0x54e9c0], ecx
mov cl, byte [esp + 0x1c]
mov byte [esi + 0x54e9cc], cl
lea ecx, [esi + 0x54e9cd]
mov esi, dword [esp + 0x40]
mov dword [ecx], esi
mov esi, dword [esp + 0x44]
mov dword [ecx + 4], esi
mov esi, dword [esp + 0x48]
mov dword [ecx + 8], esi
mov si, word [esp + 0x4c]
mov word [ecx + 0xc], si
mov ecx, dword [eax + 0x54ffa0]
cmp ecx, edx
jge 0x4020a0
inc ecx
pop edi
pop esi
mov dword [eax + 0x54ffa0], ecx
pop ebp
mov eax, 1
pop ebx
add esp, 0x39c
ret
cmp eax, 0x20
jne 0x401e7b
test ebx, ebx
jne 0x401b9a
mov esi, dword [0x54e9b8]
xor edi, edi
mov dword [esp + 0x2c], esi
lea ebp, [esp + 0x1a9]
lea esi, [esi + esi*8]
shl esi, 2
mov dl, byte [ebp - 1]
push edx
call fcn.00401330
mov ebx, eax
mov al, byte [ebp]
push eax
shl bl, 4
call fcn.00401330
add bl, al
add esp, 8
mov byte [esi + edi + 0x54dbac], bl
inc edi
add ebp, 2
cmp edi, 0x10
jl 0x401abb
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x40]
lea edx, [esi + 0x54dbbd]
mov dword [esi + 0x54dba8], eax
mov byte [esi + 0x54dbbc], cl
mov dword [edx], edi
mov edi, dword [esp + 0x44]
mov dword [edx + 4], edi
mov edi, dword [esp + 0x48]
mov dword [edx + 8], edi
mov di, word [esp + 0x4c]
mov word [edx + 0xc], di
mov byte [esi + 0x54dbcb], 0
mov esi, 0x7c00
cmp eax, esi
jne 0x401b76
cmp ecx, 1
jne 0x401b76
mov eax, dword [esp + 0x2c]
xor ecx, ecx
lea edx, [eax - 1]
test edx, edx
jle 0x401b5b
mov eax, 0x54dbbc
cmp dword [eax - 0x14], esi
jne 0x401b53
cmp byte [eax], 1
je 0x4020a0
inc ecx
add eax, 0x24
cmp ecx, edx
jl 0x401b45
mov eax, dword [0x54e9b8]
pop edi
inc eax
pop esi
mov dword [0x54e9b8], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x39c
ret
mov eax, dword [0x54e9b8]
cmp eax, 0x63
jge 0x4020a0
inc eax
pop edi
pop esi
mov dword [0x54e9b8], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x39c
ret
cmp ebx, 2
jne 0x401c4b
mov esi, dword [0x54aca8]
xor edi, edi
lea ebp, [esp + 0x1a9]
lea esi, [esi + esi*8]
shl esi, 2
mov cl, byte [ebp - 1]
push ecx
call fcn.00401330
mov dl, byte [ebp]
mov ebx, eax
push edx
shl bl, 4
call fcn.00401330
add bl, al
add esp, 8
mov byte [esi + edi + 0x549e9c], bl
inc edi
add ebp, 2
cmp edi, 0x10
jl 0x401bb8
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x1c]
mov dword [esi + 0x549e98], eax
mov eax, dword [esp + 0x40]
lea edx, [esi + 0x549ead]
mov byte [esi + 0x549eac], cl
mov ecx, dword [esp + 0x44]
mov dword [edx], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 4], ecx
mov cx, word [esp + 0x4c]
mov dword [edx + 8], eax
mov eax, dword [0x54e9b8]
cmp eax, 0x63
mov word [edx + 0xc], cx
mov byte [esi + 0x549ebb], 0
jge 0x4020a0
mov eax, dword [0x54aca8]
pop edi
inc eax
pop esi
mov dword [0x54aca8], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x39c
ret
cmp ebx, 1
jne 0x401d1c
cmp edx, 2
je 0x4020a0
test edx, edx
je 0x401c79
cmp edx, ebx
je 0x401c79
cmp edx, 0x80
je 0x401c79
cmp edx, 0x90
jne 0x4020a0
mov esi, dword [0x54dba0]
xor edi, edi
lea ebp, [esp + 0x1a9]
lea esi, [esi + esi*8]
shl esi, 2
mov dl, byte [ebp - 1]
push edx
call fcn.00401330
mov ebx, eax
mov al, byte [ebp]
push eax
shl bl, 4
call fcn.00401330
add bl, al
add esp, 8
mov byte [esi + edi + 0x54cd94], bl
inc edi
add ebp, 2
cmp edi, 0x10
jl 0x401c8e
mov ecx, dword [esp + 0x14]
mov dl, byte [esp + 0x1c]
mov dword [esi + 0x54cd90], ecx
mov ecx, dword [esp + 0x40]
lea eax, [esi + 0x54cda5]
mov byte [esi + 0x54cda4], dl
mov edx, dword [esp + 0x44]
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov dx, word [esp + 0x4c]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
mov byte [esi + 0x54cdb3], 0
mov eax, dword [0x54dba0]
cmp eax, 0x27
jge 0x4020a0
inc eax
pop edi
pop esi
mov dword [0x54dba0], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x39c
ret
cmp ebx, 8
jne 0x401dcf
mov esi, dword [0x54cd88]
xor edi, edi
lea ebp, [esp + 0x1a9]
lea esi, [esi + esi*2]
shl esi, 4
mov al, byte [ebp - 1]
push eax
call fcn.00401330
mov cl, byte [ebp]
mov ebx, eax
push ecx
shl bl, 4
call fcn.00401330
add bl, al
add esp, 8
mov byte [esi + edi + 0x54bad8], bl
inc edi
add ebp, 2
cmp edi, 0x10
jl 0x401d3a
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esi + 0x54bac8], eax
mov dword [esi + 0x54bacc], edx
mov edx, dword [esp + 0x40]
mov word [esi + 0x54bad0], ax
mov word [esi + 0x54bad2], ax
lea ecx, [esi + 0x54bae8]
mov word [esi + 0x54bad4], ax
mov word [esi + 0x54bad6], ax
mov dword [ecx], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x48]
mov dword [ecx + 8], edx
mov dx, word [esp + 0x4c]
mov word [ecx + 0xc], dx
mov byte [esi + 0x54baf6], al
cmp dword [0x54cd88], 0x63
jge 0x4020a0
jmp 0x40209a
cmp ebx, 9
jne 0x4020a0
mov esi, dword [0x54bac0]
xor edi, edi
lea ebp, [esp + 0x1a9]
lea esi, [esi + esi*8]
shl esi, 2
mov al, byte [ebp - 1]
push eax
call fcn.00401330
mov cl, byte [ebp]
mov ebx, eax
push ecx
shl bl, 4
call fcn.00401330
add bl, al
add esp, 8
mov byte [esi + edi + 0x54acb4], bl
inc edi
add ebp, 2
cmp edi, 0x10
jl 0x401ded
mov edx, dword [esp + 0x14]
mov al, byte [esp + 0x1c]
mov dword [esi + 0x54acb0], edx
mov edx, dword [esp + 0x40]
lea ecx, [esi + 0x54acc5]
mov byte [esi + 0x54acc4], al
mov eax, dword [esp + 0x44]
mov dword [ecx], edx
mov edx, dword [esp + 0x48]
mov dword [ecx + 4], eax
mov ax, word [esp + 0x4c]
mov dword [ecx + 8], edx
mov word [ecx + 0xc], ax
mov byte [esi + 0x54acd3], 0
mov eax, dword [0x54bac0]
cmp eax, 0x63
jge 0x4020a0
inc eax
pop edi
pop esi
mov dword [0x54bac0], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x39c
ret
cmp eax, 0x30
je 0x4020a0
cmp eax, 0x100
jne 0x4020a0
cmp ebx, 5
jne 0x4020a0
mov edi, dword [0x549398]
cmp edi, 0x14
jl 0x401ebf
push 0x10
push 0
push str.Conax_Key_is_full
call fcn.00421eaa
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x39c
ret
lea ecx, [edi + edi*8]
xor esi, esi
lea ebp, [esp + 0x1a9]
lea edi, [edi + ecx*4]
shl edi, 2
mov dl, byte [ebp - 1]
push edx
call fcn.00401330
mov ebx, eax
mov al, byte [ebp]
push eax
shl bl, 4
call fcn.00401330
add bl, al
add esp, 8
mov byte [edi + esi + 0x54880c], bl
inc esi
add ebp, 2
cmp esi, 0x40
jl 0x401ed1
cmp esi, 0x80
jge 0x401f3b
lea ebp, [esp + esi*2 + 0x1a9]
mov cl, byte [ebp - 1]
push ecx
call fcn.00401330
mov dl, byte [ebp]
mov ebx, eax
push edx
shl bl, 4
call fcn.00401330
add bl, al
add esp, 8
mov byte [edi + esi + 0x54880c], bl
inc esi
add ebp, 2
cmp esi, 0x80
jl 0x401f0c
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x1c]
mov dword [edi + 0x548808], eax
mov eax, dword [esp + 0x40]
lea edx, [edi + 0x54888d]
mov byte [edi + 0x54888c], cl
mov ecx, dword [esp + 0x44]
mov dword [edx], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 4], ecx
mov cx, word [esp + 0x4c]
mov dword [edx + 8], eax
mov word [edx + 0xc], cx
mov eax, dword [0x549398]
cmp eax, 0x13
jge 0x4020a0
inc eax
pop edi
pop esi
mov dword [0x549398], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x39c
ret
mov cl, byte [esp + 0x1a]
test cl, cl
je 0x4020a0
mov cl, byte [esp + 0x23]
test cl, cl
je 0x4020a0
test al, al
je 0x4020a0
mov al, byte [esp + 0x12]
test al, al
je 0x4020a0
mov al, byte [esp + 0x19]
test al, al
je 0x4020a0
mov al, byte [esp + 0x1b]
test al, al
je 0x4020a0
mov al, byte [esp + 0x13]
test al, al
je 0x4020a0
mov esi, dword [0x54cd88]
xor edi, edi
lea ebp, [esp + 0x1a9]
lea esi, [esi + esi*2]
shl esi, 4
mov dl, byte [ebp - 1]
push edx
call fcn.00401330
mov ebx, eax
mov al, byte [ebp]
push eax
shl bl, 4
call fcn.00401330
add bl, al
add esp, 8
mov byte [esi + edi + 0x54bad8], bl
inc edi
add ebp, 2
cmp edi, 0x10
jl 0x401ffb
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x74]
mov ax, word [esp + 0x3c]
mov dword [esi + 0x54bacc], ecx
mov cx, word [esp + 0x38]
mov dword [esi + 0x54bac8], edx
mov dx, word [esp + 0x28]
mov word [esi + 0x54bad0], ax
mov word [esi + 0x54bad2], cx
mov word [esi + 0x54bad4], dx
mov edx, dword [esp + 0x40]
xor eax, eax
lea ecx, [esi + 0x54bae8]
mov word [esi + 0x54bad6], ax
mov dword [ecx], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x48]
mov dword [ecx + 8], edx
mov dx, word [esp + 0x4c]
mov word [ecx + 0xc], dx
mov byte [esi + 0x54baf6], al
cmp dword [0x54cd88], 0x63
jge 0x4020a0
inc dword [0x54cd88]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x39c
ret