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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff54
mov dword [esp], edx
mov ebx, eax
mov eax, dword [ebx + 0x5538]
cmp eax, dword [ebx + 0x5534]
je 0x51ecac
mov eax, dword [ebx + 0x5538]
mov eax, dword [ebx + eax*4 + 0x828]
mov eax, dword [eax + 0x18]
sub eax, dword [ebx + 0x5538]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x5538]
mov eax, dword [ebx + eax*4 + 0x828]
mov eax, dword [eax + 0x1c]
mov dword [ebx + 0x61e0], eax
mov eax, dword [ebx + 0x5538]
mov eax, dword [ebx + eax*4 + 0x828]
mov eax, dword [eax + 0x18]
mov dword [ebx + 0x5538], eax
mov eax, dword [esp + 8]
mov dword [esp + 4], eax
jmp 0x5200d0
xor eax, eax
mov dword [ebx + 0x5538], eax
xor eax, eax
mov dword [ebx + 0x5534], eax
cmp byte [ebx + 0x553c], 0
jne 0x51ecd2
mov eax, ebx
call fcn.0051e944
mov dword [esp + 0xc], eax
jmp 0x51ece3
mov eax, dword [ebx + 0x5528]
mov dword [esp + 0xc], eax
mov byte [ebx + 0x553c], 0
mov eax, dword [ebx + 0x552c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x4828]
call fcn.0051bafc
inc eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 2
jge 0x51ed1b
mov dword [ebx + 0x61e0], 0xffffffff
mov dword [esp + 4], 1
jmp 0x5200d0
xor eax, eax
mov dword [esp + 0x18], eax
xor ebp, ebp
mov eax, dword [ebx + ebp*4 + 0x818]
mov dword [ebx + ebp*4 + 0x61c0], eax
push 0x111
mov ecx, dword [ebx + ebp*4 + 0x61c0]
or edx, 0xffffffff
mov eax, dword [ebx + 0x4828]
call fcn.0051ba9c
mov dword [ebx + ebp*4 + 0x61d0], eax
mov eax, dword [ebx + ebp*4 + 0x61d0]
mov edx, dword [esp + 0x18]
cmp eax, dword [ebx + edx*4 + 0x61d0]
jle 0x51ed6a
mov dword [esp + 0x18], ebp
inc ebp
cmp ebp, 4
jne 0x51ed23
mov eax, dword [esp + 0x18]
mov eax, dword [ebx + eax*4 + 0x61d0]
cmp eax, dword [ebx + 0x5524]
jl 0x51edb5
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x61e0], eax
mov eax, dword [esp + 0x18]
mov eax, dword [ebx + eax*4 + 0x61d0]
mov dword [esp + 8], eax
mov edx, dword [esp + 8]
dec edx
mov eax, ebx
call fcn.0051e9a8
mov eax, dword [esp + 8]
mov dword [esp + 4], eax
jmp 0x5200d0
mov eax, dword [esp + 0xc]
cmp eax, dword [ebx + 0x5524]
jl 0x51edee
mov eax, dword [esp + 0x10]
mov eax, dword [ebx + eax*4 + 0x4c90]
add eax, 4
mov dword [ebx + 0x61e0], eax
mov edx, dword [esp + 0xc]
dec edx
mov eax, ebx
call fcn.0051e9a8
mov eax, dword [esp + 0xc]
mov dword [esp + 4], eax
jmp 0x5200d0
or edx, 0xffffffff
mov eax, dword [ebx + 0x4828]
call fcn.0051ba8c
mov byte [esp + 0x98], al
xor edx, edx
sub edx, dword [ebx + 0x818]
dec edx
dec edx
mov eax, dword [ebx + 0x4828]
call fcn.0051ba8c
mov byte [esp + 0x99], al
cmp dword [esp + 0xc], 2
jge 0x51ee5c
movzx eax, byte [esp + 0x98]
cmp al, byte [esp + 0x99]
je 0x51ee5c
mov eax, dword [esp + 0x18]
cmp dword [ebx + eax*4 + 0x61d0], 2
jge 0x51ee5c
mov dword [ebx + 0x61e0], 0xffffffff
mov dword [esp + 4], 1
jmp 0x5200d0
mov eax, dword [ebx + 0x828]
mov edx, dword [ebx + 0x810]
mov dword [eax + 4], edx
movzx eax, byte [esp]
and al, byte [ebx + 0x618c]
mov byte [esp + 0x9a], al
movzx eax, byte [esp + 0x98]
push eax
movzx ecx, byte [ebx + 0x814]
mov edx, dword [esp + 4]
mov eax, dword [ebx + 0x4c90]
call fcn.00521068
push eax
mov eax, dword [ebx + 0x810]
call fcn.005185a4
mov edx, eax
xor dl, 1
movzx ecx, byte [esp + 0xa1]
pop eax
call fcn.00520eb4
mov esi, eax
mov eax, dword [ebx + 0x810]
shl eax, 4
movzx edx, byte [esp + 0x9a]
add eax, edx
movsx edx, word [ebx + eax*2 + 0x4830]
mov eax, dword [0x54fd08]
mov eax, dword [eax]
call fcn.0051ae74
add esi, eax
mov eax, dword [ebx + 0x82c]
mov dword [eax + 0x14], esi
mov eax, dword [ebx + 0x82c]
call fcn.005213d0
mov eax, dword [ebx + 0x810]
shl eax, 4
movzx edx, byte [esp + 0x9a]
add eax, edx
movsx edx, word [ebx + eax*2 + 0x4830]
mov eax, dword [0x54fd08]
mov eax, dword [eax]
call fcn.0051ae7c
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x810]
movsx edx, word [ebx + eax*2 + 0x49b0]
mov eax, dword [0x54fd08]
mov eax, dword [eax]
call fcn.0051ae7c
add eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x99]
cmp al, byte [esp + 0x98]
jne 0x51ef9b
movzx ecx, byte [esp + 0x9a]
mov edx, dword [ebx + 0x810]
mov eax, ebx
call fcn.0051e9c8
add eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x82c]
mov eax, dword [eax + 0x14]
cmp eax, dword [esp + 0x24]
jle 0x51ef9b
mov eax, dword [ebx + 0x82c]
mov edx, dword [esp + 0x24]
mov dword [eax + 0x14], edx
mov eax, dword [ebx + 0x82c]
call fcn.005213dc
mov eax, dword [esp + 0x18]
mov eax, dword [ebx + eax*4 + 0x61d0]
cmp eax, dword [esp + 0xc]
jg 0x51efb2
mov esi, dword [esp + 0xc]
jmp 0x51efbd
mov eax, dword [esp + 0x18]
mov esi, dword [ebx + eax*4 + 0x61d0]
cmp esi, 2
jge 0x51efde
mov eax, dword [ebx + 0x82c]
mov eax, dword [eax + 0x1c]
mov dword [ebx + 0x61e0], eax
mov dword [esp + 4], 1
jmp 0x5200d0
mov eax, dword [ebx + 0x82c]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebx + 0x828]
mov edx, dword [ebx + 0x61c0]
mov dword [eax + 0x20], edx
mov eax, dword [ebx + 0x828]
mov edx, dword [ebx + 0x61c4]
mov dword [eax + 0x24], edx
mov eax, dword [ebx + 0x828]
mov edx, dword [ebx + 0x61c8]
mov dword [eax + 0x28], edx
mov eax, dword [ebx + 0x828]
mov edx, dword [ebx + 0x61cc]
mov dword [eax + 0x2c], edx
mov edi, esi
mov eax, dword [ebx + edi*4 + 0x828]
mov edx, dword [0x54f9c8]
mov dword [eax + 0x14], edx
dec edi
cmp edi, 2
jge 0x51f027
xor ebp, ebp
mov edi, dword [ebx + ebp*4 + 0x61d0]
cmp edi, 2
jl 0x51f0e2
movzx eax, byte [esp + 0x9a]
push eax
mov ecx, dword [ebx + 0x810]
mov edx, ebp
mov eax, ebx
call fcn.0051ea0c
add eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
movzx ecx, byte [esp + 0x9a]
mov edx, edi
sub edx, 2
mov eax, dword [ebx + 0x4c8c]
call fcn.0052132c
add eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + edi*4 + 0x828]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 0x14]
cmp eax, dword [esp + 0x2c]
jle 0x51f0dc
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x8c]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [esp + 0x8c]
mov dword [eax + 0x1c], ebp
mov eax, dword [esp + 0x8c]
mov byte [eax + 8], 0
dec edi
cmp edi, 2
jge 0x51f06f
inc ebp
cmp ebp, 4
jne 0x51f03f
mov eax, dword [ebx + 0x810]
movsx edx, word [ebx + eax*2 + 0x49b0]
mov eax, dword [0x54fd08]
mov eax, dword [eax]
call fcn.0051ae74
add eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
cmp dword [ebx + 0x61d0], 2
jl 0x51f120
mov edi, dword [ebx + 0x61d0]
inc edi
jmp 0x51f125
mov edi, 2
cmp edi, dword [esp + 0xc]
jg 0x51f1ec
xor eax, eax
mov dword [esp + 0x34], eax
jmp 0x51f13c
add dword [esp + 0x34], 2
mov eax, dword [esp + 0x34]
cmp edi, dword [ebx + eax*4 + 0x4c94]
jg 0x51f137
mov eax, dword [esp + 0x34]
mov eax, dword [ebx + eax*4 + 0x4c98]
mov dword [esp + 0x38], eax
movzx eax, byte [esp + 0x9a]
push eax
mov ecx, edi
mov edx, dword [esp + 0x3c]
mov eax, ebx
call fcn.0051eb00
add eax, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + edi*4 + 0x828]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 0x14]
cmp eax, dword [esp + 0x2c]
jle 0x51f1ca
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x8c]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [esp + 0x38]
add eax, 4
mov edx, dword [esp + 0x8c]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x8c]
mov byte [eax + 8], 0
mov eax, dword [esp + 0x34]
cmp edi, dword [ebx + eax*4 + 0x4c94]
jne 0x51f1e6
add dword [esp + 0x34], 2
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x10]
je 0x51f1ec
inc edi
jmp 0x51f149
xor eax, eax
mov dword [esp + 0x3c], eax
inc dword [esp + 0x3c]
cmp esi, dword [esp + 0x3c]
jne 0x51f210
mov edx, dword [esp + 0x3c]
mov eax, ebx
call fcn.0051eb70
mov dword [esp + 4], eax
jmp 0x5200d0
mov eax, ebx
call fcn.0051e944
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x552c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
cmp eax, dword [ebx + 0x5524]
jl 0x51f256
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x5528], eax
mov byte [ebx + 0x553c], 1
mov edx, dword [esp + 0x3c]
mov eax, ebx
call fcn.0051eb70
mov dword [esp + 4], eax
jmp 0x5200d0
inc dword [esp]
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
cmp byte [eax + 8], 0
je 0x51f301
dec dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
cmp byte [eax + 9], 0
je 0x51f2e0
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
mov eax, dword [eax + 0xc]
mov eax, dword [ebx + eax*4 + 0x828]
mov eax, dword [eax + 4]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
cmp dword [eax + 0x10], 4
jge 0x51f2d1
mov eax, dword [esp + 0x48]
call fcn.0051857c
mov dword [esp + 0x48], eax
jmp 0x51f2f2
mov eax, dword [esp + 0x48]
call fcn.00518568
mov dword [esp + 0x48], eax
jmp 0x51f2f2
mov eax, dword [esp + 0x44]
mov eax, dword [ebx + eax*4 + 0x828]
mov eax, dword [eax + 4]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
call fcn.00518550
mov dword [esp + 0x48], eax
jmp 0x51f313
mov eax, dword [esp + 0x44]
mov eax, dword [ebx + eax*4 + 0x828]
mov eax, dword [eax + 4]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
dec eax
cmp eax, dword [esp + 0x44]
jne 0x51f356
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
call fcn.005213e8
test al, al
je 0x51f344
mov eax, dword [esp + 0x48]
call fcn.00518590
mov dword [esp + 0x48], eax
jmp 0x51f55d
mov eax, dword [esp + 0x48]
call fcn.00518550
mov dword [esp + 0x48], eax
jmp 0x51f55d
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
cmp byte [eax + 8], 0
je 0x51f3ab
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
cmp byte [eax + 9], 0
je 0x51f3ab
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
call fcn.0051857c
mov dword [esp + 0x48], eax
jmp 0x51f3e0
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x4c], 4
jge 0x51f3d3
mov eax, dword [esp + 0x48]
call fcn.0051857c
mov dword [esp + 0x48], eax
jmp 0x51f3e0
mov eax, dword [esp + 0x48]
call fcn.00518568
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
mov eax, dword [ebx + eax*4 + 0x828]
mov dword [esp + 0x90], eax
cmp dword [esp + 0x4c], 4
jge 0x51f520
cmp dword [esp + 0x4c], 0
jne 0x51f449
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x20]
mov dword [ebx + 0x61c0], eax
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x24]
mov dword [ebx + 0x61c4], eax
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x61c8], eax
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x2c]
mov dword [ebx + 0x61cc], eax
jmp 0x51f55d
cmp dword [esp + 0x4c], 1
jne 0x51f495
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x24]
mov dword [ebx + 0x61c0], eax
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x20]
mov dword [ebx + 0x61c4], eax
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x61c8], eax
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x2c]
mov dword [ebx + 0x61cc], eax
jmp 0x51f55d
cmp dword [esp + 0x4c], 2
jne 0x51f4de
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x61c0], eax
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x20]
mov dword [ebx + 0x61c4], eax
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x24]
mov dword [ebx + 0x61c8], eax
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x2c]
mov dword [ebx + 0x61cc], eax
jmp 0x51f55d
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x2c]
mov dword [ebx + 0x61c0], eax
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x20]
mov dword [ebx + 0x61c4], eax
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x24]
mov dword [ebx + 0x61c8], eax
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x61cc], eax
jmp 0x51f55d
mov eax, dword [esp + 0x4c]
sub eax, 4
mov dword [ebx + 0x61c0], eax
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x20]
mov dword [ebx + 0x61c4], eax
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x24]
mov dword [ebx + 0x61c8], eax
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x61cc], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
mov edx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
mov edx, dword [ebx + 0x61c0]
mov dword [eax + 0x20], edx
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
mov edx, dword [ebx + 0x61c4]
mov dword [eax + 0x24], edx
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
mov edx, dword [ebx + 0x61c8]
mov dword [eax + 0x28], edx
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
mov edx, dword [ebx + 0x61cc]
mov dword [eax + 0x2c], edx
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x828]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x50], eax
or edx, 0xffffffff
mov eax, dword [ebx + 0x4828]
call fcn.0051ba8c
mov byte [esp + 0x98], al
xor edx, edx
sub edx, dword [ebx + 0x61c0]
dec edx
dec edx
mov eax, dword [ebx + 0x4828]
call fcn.0051ba8c
mov byte [esp + 0x99], al
movzx eax, byte [esp]
and al, byte [ebx + 0x618c]
mov byte [esp + 0x9a], al
movzx eax, byte [esp + 0x98]
push eax
mov edx, 0xfffffffe
mov eax, dword [ebx + 0x4828]
call fcn.0051ba8c
mov ecx, eax
mov edx, dword [esp + 4]
mov eax, dword [ebx + 0x4c90]
call fcn.00521068
push eax
mov eax, dword [esp + 0x50]
call fcn.005185a4
mov edx, eax
xor dl, 1
movzx ecx, byte [esp + 0xa1]
pop eax
call fcn.00520eb4
mov edi, eax
mov eax, dword [esp + 0x48]
shl eax, 4
movzx edx, byte [esp + 0x9a]
add eax, edx
movsx edx, word [ebx + eax*2 + 0x4830]
mov eax, dword [0x54fd08]
mov eax, dword [eax]
call fcn.0051ae74
add eax, dword [esp + 0x50]
add edi, eax
mov dword [esp + 0x54], edi
mov eax, dword [esp + 0x3c]
mov eax, dword [ebx + eax*4 + 0x82c]
mov dword [esp + 0x94], eax
mov byte [esp + 0x9b], 0
mov eax, dword [esp + 0x94]
mov eax, dword [eax + 0x14]
cmp eax, dword [esp + 0x54]
jle 0x51f6e5
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x54]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x18], edx
mov eax, dword [esp + 0x94]
call fcn.005213d0
mov byte [esp + 0x9b], 1
mov eax, dword [esp + 0x48]
shl eax, 4
movzx edx, byte [esp + 0x9a]
add eax, edx
movsx edx, word [ebx + eax*2 + 0x4830]
mov eax, dword [0x54fd08]
mov eax, dword [eax]
call fcn.0051ae7c
add eax, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
movsx edx, word [ebx + eax*2 + 0x49b0]
mov eax, dword [0x54fd08]
mov eax, dword [eax]
call fcn.0051ae7c
add eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x99]
cmp al, byte [esp + 0x98]
jne 0x51f7bb
mov eax, dword [esp + 0x94]
mov eax, dword [eax + 0x18]
cmp eax, dword [esp + 0x3c]
jge 0x51f760
mov eax, dword [esp + 0x94]
cmp dword [eax + 0x1c], 0
je 0x51f7bb
movzx ecx, byte [esp + 0x9a]
mov edx, dword [esp + 0x48]
mov eax, ebx
call fcn.0051e9c8
add eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x94]
mov eax, dword [eax + 0x14]
cmp eax, dword [esp + 0x24]
jl 0x51f7bb
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x24]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x18], edx
mov eax, dword [esp + 0x94]
call fcn.005213dc
mov byte [esp + 0x9b], 1
mov eax, dword [ebx + 0x4828]
call fcn.0051bafc
inc eax
mov dword [esp + 0x58], eax
mov eax, 0xfff
sub eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x58]
jge 0x51f7ec
mov eax, 0xfff
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x9c], eax
jmp 0x51f7f7
mov eax, dword [esp + 0x58]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 2
jl 0x51f1f2
mov eax, dword [ebx + 0x5524]
cmp eax, dword [esp + 0x14]
jge 0x51f82b
mov eax, dword [ebx + 0x5524]
mov dword [esp + 0x14], eax
cmp byte [esp + 0x9b], 0
jne 0x51f9b0
movzx eax, byte [esp + 0x99]
cmp al, byte [esp + 0x98]
je 0x51f9b0
mov eax, dword [esp + 0x58]
dec eax
cmp eax, dword [ebx + 0x5524]
jge 0x51f869
mov eax, dword [esp + 0x58]
dec eax
mov dword [esp + 0xa0], eax
jmp 0x51f876
mov eax, dword [ebx + 0x5524]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
push eax
mov ecx, dword [ebx + 0x61c0]
xor edx, edx
mov eax, dword [ebx + 0x4828]
call fcn.0051ba9c
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x5c], 2
jl 0x51f9b0
mov eax, dword [esp + 0x48]
call fcn.00518550
mov dword [esp + 0x64], eax
mov eax, dword [esp]
inc eax
and eax, dword [ebx + 0x618c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x64]
shl eax, 4
add eax, dword [esp + 0x68]
movsx edx, word [ebx + eax*2 + 0x4830]
mov eax, dword [0x54fd08]
mov eax, dword [eax]
call fcn.0051ae7c
mov edi, eax
add edi, dword [esp + 0x54]
mov eax, dword [esp + 0x64]
movsx edx, word [ebx + eax*2 + 0x49b0]
mov eax, dword [0x54fd08]
mov eax, dword [eax]
call fcn.0051ae7c
add edi, eax
mov dword [esp + 0x6c], edi
mov eax, dword [esp + 0x3c]
inc eax
add eax, dword [esp + 0x5c]
mov dword [esp + 0x70], eax
cmp esi, dword [esp + 0x70]
jge 0x51f930
inc esi
mov eax, dword [ebx + esi*4 + 0x828]
mov edx, dword [0x54f9c8]
mov dword [eax + 0x14], edx
cmp esi, dword [esp + 0x70]
jl 0x51f919
mov eax, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x6c]
push eax
mov ecx, dword [esp + 0x64]
xor edx, edx
mov eax, ebx
call fcn.0051eac4
add eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x70]
mov eax, dword [ebx + eax*4 + 0x828]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 0x14]
cmp eax, dword [esp + 0x2c]
jle 0x51f9b0
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x3c]
inc eax
mov edx, dword [esp + 0x8c]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x8c]
xor edx, edx
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 0x8c]
mov byte [eax + 8], 1
mov eax, dword [esp + 0x8c]
mov byte [eax + 9], 0
mov dword [esp + 0x74], 2
xor eax, eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [ebx + eax*4 + 0x61c0]
or edx, 0xffffffff
mov eax, dword [ebx + 0x4828]
call fcn.0051ba9c
mov edi, eax
cmp edi, 2
jl 0x51fd0c
mov dword [esp + 0x7c], edi
jmp 0x51f9fe
inc esi
mov eax, dword [ebx + esi*4 + 0x828]
mov edx, dword [0x54f9c8]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x3c]
add eax, edi
cmp esi, eax
jl 0x51f9ed
mov eax, dword [esp + 0x48]
push eax
movzx eax, byte [esp + 0x9e]
push eax
mov ecx, edi
mov edx, dword [esp + 0x80]
mov eax, ebx
call fcn.0051eac4
add eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
add eax, edi
mov eax, dword [ebx + eax*4 + 0x828]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 0x14]
cmp eax, dword [esp + 0x2c]
jle 0x51fa87
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x18], edx
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x78]
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 0x8c]
mov byte [eax + 8], 0
dec edi
cmp edi, 2
jge 0x51f9fe
mov edi, dword [esp + 0x7c]
cmp dword [esp + 0x78], 0
jne 0x51faa3
lea eax, [edi + 1]
mov dword [esp + 0x74], eax
cmp edi, dword [esp + 0x58]
jge 0x51fd0c
mov eax, dword [esp + 0x58]
dec eax
sub eax, edi
cmp eax, dword [ebx + 0x5524]
jge 0x51facc
mov eax, dword [esp + 0x58]
dec eax
sub eax, edi
mov dword [esp + 0xa4], eax
jmp 0x51fad9
mov eax, dword [ebx + 0x5524]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [ebx + eax*4 + 0x61c0]
mov edx, edi
mov eax, dword [ebx + 0x4828]
call fcn.0051ba9c
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x5c], 2
jl 0x51fd0c
mov eax, dword [esp + 0x48]
call fcn.0051857c
mov dword [esp + 0x64], eax
mov eax, dword [esp]
add eax, edi
and eax, dword [ebx + 0x618c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x48]
push eax
movzx eax, byte [esp + 0x9e]
push eax
mov ecx, edi
mov edx, dword [esp + 0x80]
mov eax, ebx
call fcn.0051eac4
mov ebp, eax
add ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x64]
shl eax, 4
add eax, dword [esp + 0x68]
movsx edx, word [ebx + eax*2 + 0x4830]
mov eax, dword [0x54fd08]
mov eax, dword [eax]
call fcn.0051ae74
add ebp, eax
mov edx, edi
dec edx
mov eax, dword [ebx + 0x4828]
call fcn.0051ba8c
push eax
mov edx, edi
dec edx
dec edx
mov eax, dword [ebx + 0x4828]
call fcn.0051ba8c
mov ecx, eax
mov edx, dword [esp + 4]
add edx, edi
mov eax, dword [ebx + 0x4c90]
call fcn.00521068
push eax
mov edx, edi
dec edx
mov eax, dword [esp + 0x80]
mov eax, dword [ebx + eax*4 + 0x61c0]
inc eax
sub edx, eax
mov eax, dword [ebx + 0x4828]
call fcn.0051ba8c
mov ecx, eax
mov dl, 1
pop eax
call fcn.00520eb4
add ebp, eax
mov dword [esp + 0x80], ebp
mov eax, dword [esp + 0x64]
call fcn.00518550
mov dword [esp + 0x64], eax
mov eax, dword [esp]
add eax, edi
inc eax
and eax, dword [ebx + 0x618c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x64]
shl eax, 4
add eax, dword [esp + 0x68]
movsx edx, word [ebx + eax*2 + 0x4830]
mov eax, dword [0x54fd08]
mov eax, dword [eax]
call fcn.0051ae7c
add eax, dword [esp + 0x80]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x64]
movsx edx, word [ebx + eax*2 + 0x49b0]
mov eax, dword [0x54fd08]
mov eax, dword [eax]
call fcn.0051ae7c
add eax, dword [esp + 0x84]
mov dword [esp + 0x6c], eax
lea eax, [edi + 1]
add eax, dword [esp + 0x5c]
mov dword [esp + 0x70], eax
jmp 0x51fc60
inc esi
mov eax, dword [ebx + esi*4 + 0x828]
mov edx, dword [0x54f9c8]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0x70]
cmp esi, eax
jl 0x51fc4f
mov eax, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x6c]
push eax
mov ecx, dword [esp + 0x64]
xor edx, edx
mov eax, ebx
call fcn.0051eac4
add eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0x70]
mov eax, dword [ebx + eax*4 + 0x828]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 0x14]
cmp eax, dword [esp + 0x2c]
jle 0x51fd0c
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x14], edx
add edi, dword [esp + 0x3c]
inc edi
mov eax, dword [esp + 0x8c]
mov dword [eax + 0x18], edi
mov eax, dword [esp + 0x8c]
xor edx, edx
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 0x8c]
mov byte [eax + 8], 1
mov eax, dword [esp + 0x8c]
mov byte [eax + 9], 1
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x78]
mov dword [eax + 0x10], edx
inc dword [esp + 0x78]
cmp dword [esp + 0x78], 4
jne 0x51f9be
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x14]
jle 0x51fd5f
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x51fd3a
add dword [esp + 0x10], 2
mov eax, dword [esp + 0x10]
mov eax, dword [ebx + eax*4 + 0x4c94]
cmp eax, dword [esp + 0x40]
jl 0x51fd35
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
mov dword [ebx + eax*4 + 0x4c94], edx
add dword [esp + 0x10], 2
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x74]
jl 0x51f1f2
mov eax, dword [esp + 0x48]
movsx edx, word [ebx + eax*2 + 0x49b0]
mov eax, dword [0x54fd08]
mov eax, dword [eax]
call fcn.0051ae74
add eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
jmp 0x51fda0
inc esi
mov eax, dword [ebx + esi*4 + 0x828]
mov edx, dword [0x54f9c8]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0x40]
cmp esi, eax
jl 0x51fd8f
xor eax, eax
mov dword [esp + 0x34], eax
jmp 0x51fdb9
add dword [esp + 0x34], 2
mov eax, dword [esp + 0x34]
mov eax, dword [ebx + eax*4 + 0x4c94]
cmp eax, dword [esp + 0x74]
jl 0x51fdb4
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x34]
mov eax, dword [ebx + eax*4 + 0x4c98]
mov dword [esp + 0x88], eax
movzx eax, byte [esp + 0x9a]
push eax
mov ecx, edi
mov edx, dword [esp + 0x8c]
mov eax, ebx
call fcn.0051eb00
add eax, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
add eax, edi
mov eax, dword [ebx + eax*4 + 0x828]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 0x14]
cmp eax, dword [esp + 0x2c]
jle 0x51fe60
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x18], edx
mov eax, dword [esp + 0x88]
add eax, 4
mov edx, dword [esp + 0x8c]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x8c]
mov byte [eax + 8], 0
mov eax, dword [esp + 0x34]
cmp edi, dword [ebx + eax*4 + 0x4c94]
jne 0x5200ca
cmp edi, dword [esp + 0x58]
jge 0x5200b7
mov eax, dword [esp + 0x58]
dec eax
sub eax, edi
cmp eax, dword [ebx + 0x5524]
jge 0x51fe9a
mov eax, dword [esp + 0x58]
dec eax
sub eax, edi
mov dword [esp + 0xa8], eax
jmp 0x51fea7
mov eax, dword [ebx + 0x5524]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
push eax
mov ecx, dword [esp + 0x8c]
mov edx, edi
mov eax, dword [ebx + 0x4828]
call fcn.0051ba9c
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x5c], 2
jl 0x5200b7
mov eax, dword [esp + 0x48]
call fcn.00518568
mov dword [esp + 0x64], eax
mov eax, dword [esp]
add eax, edi
and eax, dword [ebx + 0x618c]
mov dword [esp + 0x68], eax
mov edx, edi
dec edx
mov eax, dword [ebx + 0x4828]
call fcn.0051ba8c
push eax
mov edx, edi
dec edx
dec edx
mov eax, dword [ebx + 0x4828]
call fcn.0051ba8c
mov ecx, eax
mov edx, dword [esp + 4]
add edx, edi
mov eax, dword [ebx + 0x4c90]
call fcn.00521068
push eax
mov eax, dword [esp + 0x90]
inc eax
mov edx, edi
sub edx, eax
dec edx
mov eax, dword [ebx + 0x4828]
call fcn.0051ba8c
mov ecx, eax
mov dl, 1
pop eax
call fcn.00520eb4
mov ebp, eax
mov eax, dword [esp + 0x64]
shl eax, 4
add eax, dword [esp + 0x68]
movsx edx, word [ebx + eax*2 + 0x4830]
mov eax, dword [0x54fd08]
mov eax, dword [eax]
call fcn.0051ae74
add eax, dword [esp + 0x2c]
add ebp, eax
mov dword [esp + 0x80], ebp
mov eax, dword [esp + 0x64]
call fcn.00518550
mov dword [esp + 0x64], eax
mov eax, dword [esp]
add eax, edi
inc eax
and eax, dword [ebx + 0x618c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x64]
shl eax, 4
add eax, dword [esp + 0x68]
movsx edx, word [ebx + eax*2 + 0x4830]
mov eax, dword [0x54fd08]
mov eax, dword [eax]
call fcn.0051ae7c
add eax, dword [esp + 0x80]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x64]
movsx edx, word [ebx + eax*2 + 0x49b0]
mov eax, dword [0x54fd08]
mov eax, dword [eax]
call fcn.0051ae7c
add eax, dword [esp + 0x84]
mov dword [esp + 0x6c], eax
lea eax, [edi + 1]
add eax, dword [esp + 0x5c]
mov dword [esp + 0x70], eax
jmp 0x520003
inc esi
mov eax, dword [ebx + esi*4 + 0x828]
mov edx, dword [0x54f9c8]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0x70]
cmp esi, eax
jl 0x51fff2
mov eax, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x6c]
push eax
mov ecx, dword [esp + 0x64]
xor edx, edx
mov eax, ebx
call fcn.0051eac4
add eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0x70]
mov eax, dword [ebx + eax*4 + 0x828]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 0x14]
cmp eax, dword [esp + 0x2c]
jle 0x5200b7
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x3c]
add eax, edi
inc eax
mov edx, dword [esp + 0x8c]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x8c]
xor edx, edx
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 0x8c]
mov byte [eax + 8], 1
mov eax, dword [esp + 0x8c]
mov byte [eax + 9], 1
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x88]
add eax, 4
mov edx, dword [esp + 0x8c]
mov dword [edx + 0x10], eax
add dword [esp + 0x34], 2
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x10]
je 0x51f1f2
inc edi
jmp 0x51fdce
mov eax, dword [esp + 4]
add esp, 0xac
pop ebp
pop edi
pop esi
pop ebx
ret