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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ecx + 0x3c]
push esi
xor esi, esi
push edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
cmp dword [ebp + 0x10], esi
jne 0x487f92
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx edx, word [ecx + 0x10]
movzx eax, byte [ecx + 1]
lea edi, [eax + edx]
cmp edi, 2
jge 0x487faf
mov dword [esp + 0x18], esi
lea esi, [edi + 1]
mov dword [esp + 0x34], esi
jmp 0x487fd6
mov dword [esp + 0x34], 3
cmp dword [ebp + 0xc], esi
je 0x487fcd
mov esi, dword [ebp + 0xc]
cmp esi, edi
jne 0x487fcc
add edi, 0xfffffffe
mov dword [esp + 0x18], edi
jmp 0x487fd1
dec esi
mov dword [esp + 0x18], esi
mov edi, 2
mov esi, dword [esp + 0x18]
sub esi, eax
lea eax, [esi + edi]
cmp eax, edx
jne 0x487ff4
movzx eax, byte [ecx + 5]
mov ecx, dword [ecx + 0x40]
lea edx, [eax + ecx + 8]
mov dword [esp + 0x70], edx
jmp 0x488018
movzx esi, word [ecx + 0xc]
mov edx, dword [ecx + 0x40]
movzx ecx, word [ecx + 0x12]
add esi, edx
lea esi, [esi + eax*2]
movzx eax, byte [esi + 1]
movzx esi, byte [esi]
shl esi, 8
or eax, esi
and eax, ecx
add eax, edx
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x70]
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
lea esi, [esp + edi*4 + 0x74]
push esi
mov dword [esp + 0x58], eax
call fcn.00483920
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x488188
mov edx, dword [esp + 0x18]
add edx, edi
mov dword [esp + 0x38], edx
mov esi, dword [esi]
movzx ecx, byte [esi + 1]
add ecx, dword [esp + 0x40]
movzx eax, word [esi + 0x10]
dec dword [esp + 0x38]
mov edx, edi
lea eax, [ecx + eax + 1]
dec edi
mov dword [esp + 0x40], eax
test edx, edx
je 0x4881a4
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x18]
cmp dword [esp + 0x38], ecx
jne 0x4880e2
cmp byte [eax + 1], 0
je 0x4880e2
mov esi, eax
mov eax, dword [esi + 0x14]
movzx edx, byte [eax]
movzx ebx, byte [eax + 1]
movzx ecx, byte [eax + 2]
shl edx, 8
or ebx, edx
movzx edx, byte [eax + 3]
shl ebx, 8
or ebx, ecx
shl ebx, 8
mov dword [esp + edi*4 + 0x94], eax
or ebx, edx
push eax
mov eax, esi
mov dword [esp + 0x58], ebx
call fcn.00483030
movzx eax, ax
add esp, 4
mov dword [esp + edi*4 + 0x5c], eax
mov byte [esi + 1], 0
jmp 0x488169
mov ebx, dword [esp + 0x18]
mov esi, eax
movzx ecx, byte [esi + 1]
mov eax, dword [esi + 0x40]
mov edx, ebx
sub edx, ecx
movzx ecx, word [esi + 0xc]
add ecx, eax
add edx, edi
lea ecx, [ecx + edx*2]
movzx edx, byte [ecx + 1]
movzx ecx, byte [ecx]
shl ecx, 8
or edx, ecx
movzx ecx, word [esi + 0x12]
and edx, ecx
lea ecx, [edx + eax]
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
shl edx, 8
or eax, edx
movzx edx, byte [ecx + 2]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 3]
shl eax, 8
or eax, edx
mov dword [esp + 0x54], eax
push ecx
mov eax, esi
mov dword [esp + edi*4 + 0x98], ecx
call fcn.00483030
movzx edx, byte [esi + 1]
add esp, 4
movzx eax, ax
lea ecx, [esp + 0x10]
push ecx
sub ebx, edx
push eax
add ebx, edi
push ebx
mov dword [esp + edi*4 + 0x68], eax
call fcn.004879c0
mov ebx, dword [esp + 0x60]
add esp, 0xc
lea esi, [esp + edi*4 + 0x74]
mov eax, ebx
mov ebx, dword [esp + 0x2c]
push esi
call fcn.00483920
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x488061
lea eax, [edi*4 + 4]
push eax
lea ecx, [esp + 0x78]
push 0
push ecx
call fcn.004cc620
add esp, 0xc
jmp 0x488ac8
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
lea ebx, [eax + 3]
movzx eax, word [edx + 0x14]
lea ecx, [eax + 0x50]
mov dword [esp + 0x50], ecx
imul ecx, esi
and ebx, 0xfffffffc
lea edx, [ebx + ebx*2]
add ecx, eax
lea edi, [ecx + edx*2]
call fcn.00478bc0
mov dword [esp + 0x30], eax
test eax, eax
jne 0x4881e2
mov dword [esp + 0x10], 7
jmp 0x488ac8
lea eax, [eax + ebx*4]
mov dword [esp + 0x20], eax
lea eax, [eax + ebx*2]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x74]
movzx cx, byte [eax + 3]
movzx eax, byte [eax + 4]
add cx, cx
add cx, cx
movzx edx, cx
mov dword [esp + 0x38], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], 0
test esi, esi
jle 0x4883c1
mov ecx, dword [esp + 0x34]
dec ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x40], 0
nop
mov edx, dword [esp + 0x2c]
movzx eax, word [edx + 0x14]
add eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
lea ebx, [eax + ecx]
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x9c], ebx
mov eax, dword [esp + eax*4 + 0x74]
mov esi, eax
mov ecx, 0x13
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x4c]
mov dword [ebx + 0x40], ecx
movzx edx, word [edx + 0x14]
mov eax, dword [eax + 0x40]
push edx
push eax
push ecx
call fcn.004cf8d0
movzx edi, word [ebx + 0x10]
movzx ecx, byte [ebx + 1]
add edi, ecx
add esp, 0xc
mov dword [esp + 0x1c], 0
test edi, edi
jle 0x488307
movzx eax, byte [ebx + 1]
sub eax, 1
mov ecx, dword [esp + 0x1c]
js 0x4882b7
lea edx, [ebx + eax*8 + 0x14]
movzx esi, word [edx + 4]
cmp esi, ecx
jg 0x4882af
je 0x488387
dec ecx
dec eax
sub edx, 8
test eax, eax
jge 0x4882a0
movzx eax, word [ebx + 0xc]
mov edx, dword [ebx + 0x40]
add eax, edx
lea ecx, [eax + ecx*2]
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx]
shl ecx, 8
or eax, ecx
movzx ecx, word [ebx + 0x12]
and eax, ecx
add eax, edx
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x3c]
mov dword [edx + esi*4], eax
push eax
mov eax, ebx
call fcn.00483030
mov ecx, dword [esp + 0x24]
mov word [ecx + esi*2], ax
mov eax, dword [esp + 0x20]
inc eax
inc esi
add esp, 4
cmp eax, edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x1c], eax
jl 0x48828f
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x58]
jge 0x4883a6
cmp dword [esp + 0x48], 0
jne 0x4883a6
movzx eax, word [esp + edx*4 + 0x5c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + edx*4 + 0x94]
mov edi, dword [esp + 0x44]
mov word [ecx + esi*2], ax
mov ecx, dword [esp + 0x28]
movzx eax, ax
push eax
add edi, ecx
push edx
add ecx, eax
push edi
mov dword [esp + 0x34], ecx
call fcn.004cf8d0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
movzx eax, cx
add eax, edi
mov dword [edx + esi*4], eax
mov eax, dword [esp + 0x2c]
sub word [eax + esi*2], cx
movzx eax, word [eax + esi*2]
add esp, 0xc
cmp byte [ebx + 3], 0
jne 0x48838e
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + 8]
mov ecx, edx
mov edx, dword [ecx + esi*4]
mov dword [edx], eax
jmp 0x4883a1
mov eax, dword [edx]
jmp 0x4882d7
cmp ax, 4
jae 0x4883a1
mov edx, dword [esp + 0x20]
mov ecx, 4
mov word [edx + esi*2], cx
inc esi
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
add dword [esp + 0x40], ecx
inc eax
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
jl 0x488230
mov edx, dword [esp + 0x2c]
movzx eax, word [esp + 0x38]
movzx ecx, word [edx + 0x16]
mov ebx, dword [esp + 0x3c]
lea edi, [ecx + eax - 0xc]
xor ecx, ecx
xor esi, esi
xor eax, eax
test ebx, ebx
jle 0x488416
mov edx, dword [esp + 0x20]
movzx edx, word [edx + ecx*2]
lea eax, [eax + edx + 2]
cmp eax, edi
jle 0x488411
sub eax, edx
cmp dword [esp + 0x48], 0
mov dword [esp + esi*4 + 0x5c], eax
mov dword [esp + esi*4 + 0x80], ecx
je 0x488405
dec ecx
inc esi
xor eax, eax
cmp esi, 4
jg 0x4884aa
inc ecx
cmp ecx, ebx
jl 0x4883e0
mov dword [esp + esi*4 + 0x80], ebx
inc esi
mov dword [esp + esi*4 + 0x58], eax
lea ebx, [esi - 1]
mov dword [esp + 0x50], esi
mov dword [esp + 0x14], ebx
test ebx, ebx
jle 0x4884a0
mov edx, dword [esp + ebx*4 + 0x5c]
mov edi, dword [esp + ebx*4 + 0x58]
mov eax, dword [esp + ebx*4 + 0x7c]
dec eax
mov ecx, eax
sub ecx, dword [esp + 0x48]
inc ecx
test edx, edx
je 0x48846c
mov esi, dword [esp + 0x20]
movzx esi, word [esi + eax*2]
mov ebx, edi
sub ebx, esi
mov esi, dword [esp + 0x20]
movzx esi, word [esi + ecx*2]
sub ebx, 2
lea esi, [esi + edx + 2]
cmp esi, ebx
mov ebx, dword [esp + 0x14]
jg 0x48848b
mov esi, dword [esp + 0x20]
movzx ecx, word [esi + ecx*2]
movzx eax, word [esi + eax*2]
lea edx, [edx + ecx + 2]
mov ecx, 0xfffffffe
sub ecx, eax
add edi, ecx
dec dword [esp + ebx*4 + 0x7c]
jmp 0x488439
mov dword [esp + ebx*4 + 0x5c], edx
mov dword [esp + ebx*4 + 0x58], edi
dec ebx
mov dword [esp + 0x14], ebx
test ebx, ebx
jg 0x488431
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x74]
cmp dword [eax + 0x48], 1
ja 0x4884b7
mov dword [esp + 0x10], 0xb
jmp 0x488ac8
mov edx, dword [eax + 0x40]
movzx eax, byte [edx]
xor edi, edi
mov dword [esp + 0x44], eax
test esi, esi
jle 0x488571
mov ebx, dword [esp + 0x24]
nop
cmp edi, dword [esp + 0x34]
jge 0x4884ff
mov eax, dword [esp + edi*4 + 0x74]
mov ecx, dword [eax + 0x44]
push ecx
mov dword [esp + edi*4 + 0x60], eax
mov dword [esp + 0x2c], eax
mov dword [esp + edi*4 + 0x78], 0
call fcn.00481b90
add esp, 4
inc ebx
mov dword [esp + 0x10], eax
test eax, eax
jmp 0x48855e
mov edx, dword [esp + 0x54]
push 0
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
call fcn.00486b60
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x488ac4
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
inc ebx
cmp byte [ecx + 0x12], 0
mov dword [esp + edi*4 + 0x5c], eax
je 0x488564
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x48]
lea edx, [esp + 0x10]
push edx
mov edx, dword [ecx + 0x48]
mov ecx, dword [esp + 0x30]
push edx
push 5
call fcn.00482d30
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x488ac4
inc edi
cmp edi, esi
jl 0x4884d0
mov dword [esp + 0x24], ebx
cmp edi, dword [esp + 0x34]
jge 0x488623
jmp 0x488580
cmp dword [esp + 0x10], 0
mov ebx, dword [esp + edi*4 + 0x74]
jne 0x488ac8
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x3c]
push eax
push ecx
mov eax, ebx
call fcn.00487240
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x488ac8
test ebx, ebx
je 0x488610
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x488610
mov ebx, dword [eax + 0x10]
call fcn.0047d980
mov edx, dword [ebx + 0xa8]
cmp dword [edx + 0xc], 0
jne 0x488610
cmp byte [ebx + 4], 0
je 0x4885e0
cmp dword [ebx + 0x4c], 0
jl 0x488610
jg 0x4885e0
cmp dword [ebx + 0x48], 0
jbe 0x488610
cmp dword [ebx + 0x24], 0
jne 0x488609
cmp byte [ebx + 0xe], 2
jb 0x488609
mov eax, dword [0x51b400]
test eax, eax
je 0x4885f7
call eax
mov eax, ebx
call fcn.00482050
mov eax, dword [0x51b404]
test eax, eax
je 0x488609
call eax
mov eax, ebx
call fcn.0047f7d0
mov dword [esp + edi*4 + 0x74], 0
inc edi
cmp edi, dword [esp + 0x34]
jl 0x488580
lea eax, [esi - 1]
xor ecx, ecx
test eax, eax
jle 0x488687
lea esp, [esp]
lea eax, [esp + ecx*4 + 0x5c]
mov dword [esp + 0x58], eax
mov eax, dword [eax]
mov edi, dword [eax + 0x48]
mov dword [esp + 0x28], eax
lea eax, [ecx + 1]
cmp eax, esi
mov ebx, ecx
mov dword [esp + 0x40], eax
jge 0x48867c
mov edi, edi
mov edx, dword [esp + eax*4 + 0x5c]
mov edx, dword [edx + 0x48]
cmp edx, edi
jae 0x48865f
mov ebx, eax
mov edi, edx
inc eax
cmp eax, esi
jl 0x488650
cmp ebx, ecx
jle 0x48867c
mov ecx, dword [esp + ebx*4 + 0x5c]
mov edx, dword [esp + 0x58]
lea eax, [esp + ebx*4 + 0x5c]
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
lea eax, [esi - 1]
cmp ecx, eax
jl 0x488630
mov edx, dword [esp + 0x24]
mov esi, dword [esp + edx*4 + 0x58]
mov eax, dword [esi + 0x48]
mov ecx, dword [esp + 0x70]
mov ebx, eax
shr ebx, 0x18
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0x10
mov byte [ecx + 1], bl
mov ebx, eax
shr ebx, 8
mov byte [ecx + 2], bl
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x58], esi
mov byte [ecx + 3], al
mov dword [esp + 0x14], ebx
test edx, edx
jle 0x488807
jmp 0x4886d4
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + ebx*4 + 0x5c]
mov ecx, dword [esp + 0x44]
call fcn.00483800
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + ebx*4 + 0x80]
lea eax, [edx + edi*2]
push eax
lea edx, [ecx + edi*4]
push edx
mov eax, ebx
sub eax, edi
push eax
push esi
call fcn.00487c50
mov edi, ebx
add esp, 0x10
cmp edi, dword [esp + 0x3c]
jge 0x4887f0
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + edi*4]
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + edi*2]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x1c], edx
movzx edx, word [esp + 0x38]
movzx eax, cx
add eax, edx
mov edx, dword [ebp + 0x10]
add ebx, edx
cmp byte [esi + 3], 0
jne 0x48874c
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x40]
mov edx, dword [edx]
mov dword [ecx + 8], edx
jmp 0x4887b2
cmp dword [esp + 0x48], 0
je 0x488794
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + edi*4 - 4]
lea eax, [esp + 0xa8]
dec edi
push eax
push edx
push esi
call fcn.00482ee0
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xbc]
add esp, 0xc
push eax
push ecx
lea ecx, [ebx + 4]
mov dword [esp + 0x24], ebx
call fcn.0047b580
add esp, 8
add eax, 4
xor ebx, ebx
jmp 0x4887b2
sub dword [esp + 0x1c], 4
cmp cx, 4
jne 0x4887b2
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
push edx
call fcn.00483030
add esp, 4
movzx eax, ax
add dword [esp + 0x4c], eax
cmp dword [esp + 0x10], 0
jne 0x488ac8
mov edx, dword [esi + 0x48]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push ebx
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.00487a90
add esp, 0x14
cmp dword [esp + 0x10], 0
jne 0x488ac8
inc edi
inc dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
jl 0x4886d0
mov esi, dword [esp + 0x58]
test byte [esp + 0x44], 8
jne 0x488825
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + eax*4 + 0x98]
mov edx, dword [ecx + 0x40]
mov eax, dword [esi + 0x40]
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
cmp dword [ebp + 0x14], 0
mov ebx, dword [esp + 0x5c]
je 0x48887a
mov eax, dword [ebp + 8]
cmp word [eax + 0x10], 0
jne 0x48887a
movzx dx, byte [eax + 5]
cmp dx, word [ebx + 0xe]
ja 0x48887a
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 8]
call fcn.00487ea0
add esp, 4
cmp dword [esp + 0x10], 0
jne 0x488ac8
mov ecx, dword [ebx + 0x48]
mov edx, dword [ebx + 0x3c]
push ecx
push edx
mov eax, ebx
call fcn.00487240
add esp, 8
mov dword [esp + 0x10], eax
jmp 0x488ac8
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x12], 0
je 0x488ac8
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x9c]
movzx eax, byte [ebx + 1]
movzx edi, word [ebx + 0x10]
add edi, eax
mov dword [esp + 0x4c], eax
test eax, eax
je 0x4888ab
movzx eax, word [ebx + 0x18]
jmp 0x4888ae
or eax, 0xffffffff
xor esi, esi
cmp dword [esp + 0x3c], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x50], esi
jle 0x488a5f
mov dword [esp + 0x28], esi
xor ecx, ecx
cmp esi, edi
jne 0x488918
cmp dword [esp + 0x48], ecx
sete cl
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + eax*4 + 0xa0]
movzx edx, word [ebx + 0x10]
inc eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + 1]
movzx edi, al
add edx, esi
add edi, edx
add edi, ecx
test al, al
je 0x488910
movzx eax, al
mov dword [esp + 0x4c], eax
movzx eax, word [ebx + 0x18]
add eax, esi
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x488914
mov eax, dword [esp + 0x14]
cmp esi, edi
je 0x4888d7
cmp esi, eax
jne 0x488933
mov edx, dword [esp + 0x4c]
dec edx
mov ecx, 1
mov dword [esp + 0x4c], edx
test edx, edx
jle 0x488933
inc eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x28]
cmp esi, dword [esp + edx + 0x80]
jne 0x488964
mov edx, dword [esp + 0x50]
inc edx
mov dword [esp + 0x50], edx
add edx, edx
add edx, edx
cmp dword [esp + 0x48], 0
mov dword [esp + 0x28], edx
mov edx, dword [esp + edx + 0x5c]
mov dword [esp + 0x18], edx
je 0x488a54
test ecx, ecx
jne 0x488978
mov ecx, dword [ebx + 0x48]
mov edx, dword [esp + 0x18]
cmp ecx, dword [edx + 0x48]
je 0x488a54
cmp word [esp + 0x38], 0
jne 0x4889c4
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + esi*4]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
mov edx, dword [eax + 0x48]
movzx eax, byte [ecx]
push edx
movzx edx, byte [ecx + 1]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x34]
push 5
call fcn.00482d30
mov eax, dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x20]
mov cx, word [edx + esi*2]
mov edx, dword [esp + 0x18]
cmp cx, word [edx + 0xa]
jbe 0x488a54
cmp dword [esp + 0x10], 0
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + esi*4]
mov dword [esp + 0x44], edx
jne 0x488a54
lea eax, [esp + 0xa8]
push eax
mov ecx, edx
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.00482ee0
mov ax, word [esp + 0xd0]
add esp, 0xc
test ax, ax
je 0x488a50
mov edx, dword [esp + 0x18]
movzx ecx, ax
add ecx, dword [esp + 0x44]
lea eax, [esp + 0x10]
push eax
mov eax, dword [edx + 0x48]
movzx edx, byte [ecx]
push eax
movzx eax, byte [ecx + 1]
shl edx, 8
or eax, edx
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x20]
shl eax, 8
or eax, ecx
mov ecx, dword [edx + 0x3c]
push 3
call fcn.00482d30
add esp, 0xc
mov eax, dword [esp + 0x14]
inc esi
cmp esi, dword [esp + 0x3c]
jl 0x4888ca
cmp word [esp + 0x38], 0
jne 0x488ac8
xor esi, esi
cmp dword [esp + 0x24], esi
jle 0x488ac8
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
jmp 0x488a80
mov eax, dword [esp + esi*4 + 0x5c]
mov ecx, dword [eax + 0x40]
mov eax, dword [eax + 0x48]
add ecx, 8
lea edx, [esp + 0x10]
push edx
movzx edx, byte [ecx]
push eax
movzx eax, byte [ecx + 1]
shl edx, 8
or eax, edx
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
push 5
mov ecx, ebx
call fcn.00482d30
inc esi
add esp, 0xc
cmp esi, edi
jl 0x488a80
jmp 0x488ac8
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x30]
call fcn.00478cf0
mov ebx, dword [esp + 0x34]
xor edi, edi
test ebx, ebx
jle 0x488b47
mov eax, dword [esp + edi*4 + 0x74]
test eax, eax
je 0x488b42
mov eax, dword [eax + 0x44]
test eax, eax
je 0x488b42
mov esi, dword [eax + 0x10]
call fcn.0047d980
mov edx, dword [esi + 0xa8]
cmp dword [edx + 0xc], 0
jne 0x488b42
cmp byte [esi + 4], 0
je 0x488b12
cmp dword [esi + 0x4c], 0
jl 0x488b42
jg 0x488b12
cmp dword [esi + 0x48], 0
jbe 0x488b42
cmp dword [esi + 0x24], 0
jne 0x488b3b
cmp byte [esi + 0xe], 2
jb 0x488b3b
mov eax, dword [0x51b400]
test eax, eax
je 0x488b29
call eax
mov eax, esi
call fcn.00482050
mov eax, dword [0x51b404]
test eax, eax
je 0x488b3b
call eax
mov eax, esi
call fcn.0047f7d0
inc edi
cmp edi, ebx
jl 0x488adb
mov ebx, dword [esp + 0x24]
xor edi, edi
test ebx, ebx
jle 0x488bbd
mov eax, dword [esp + edi*4 + 0x5c]
test eax, eax
je 0x488bb8
mov eax, dword [eax + 0x44]
test eax, eax
je 0x488bb8
mov esi, dword [eax + 0x10]
call fcn.0047d980
mov eax, dword [esi + 0xa8]
cmp dword [eax + 0xc], 0
jne 0x488bb8
cmp byte [esi + 4], 0
je 0x488b88
cmp dword [esi + 0x4c], 0
jl 0x488bb8
jg 0x488b88
cmp dword [esi + 0x48], 0
jbe 0x488bb8
cmp dword [esi + 0x24], 0
jne 0x488bb1
cmp byte [esi + 0xe], 2
jb 0x488bb1
mov eax, dword [0x51b400]
test eax, eax
je 0x488b9f
call eax
mov eax, esi
call fcn.00482050
mov eax, dword [0x51b404]
test eax, eax
je 0x488bb1
call eax
mov eax, esi
call fcn.0047f7d0
inc edi
cmp edi, ebx
jl 0x488b51
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret