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

Disassembly:
sub esp, 0xb8
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0xc4]
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], eax
cmp dword [esp + 0xc8], ebp
jne 0x4a45e5
pop esi
lea eax, [ebp + 7]
pop ebp
add esp, 0xb8
ret
movzx eax, word [esi + 0x10]
movzx ecx, byte [esi + 1]
push ebx
push edi
lea edi, [ecx + eax]
cmp edi, 2
jge 0x4a4600
lea edx, [edi + 1]
mov dword [esp + 0x24], edx
jmp 0x4a461b
mov dword [esp + 0x24], 3
cmp edx, ebp
je 0x4a4616
lea ebp, [edi - 2]
cmp edx, edi
je 0x4a4616
lea ebp, [edx - 1]
mov edi, 2
mov edx, ebp
sub edx, ecx
lea ecx, [edx + edi]
mov dword [esp + 0x18], ebp
cmp ecx, eax
jne 0x4a4637
movzx eax, byte [esi + 5]
mov ecx, dword [esi + 0x40]
lea ecx, [eax + ecx + 8]
jmp 0x4a4657
movzx edx, word [esi + 0xc]
mov eax, dword [esi + 0x40]
add edx, eax
lea edx, [edx + ecx*2]
movzx ecx, byte [edx + 1]
movzx edx, byte [edx]
shl edx, 8
or ecx, edx
movzx edx, word [esi + 0x12]
and ecx, edx
add ecx, eax
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 2]
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x48], ecx
movzx ecx, byte [ecx + 3]
shl eax, 8
lea ebx, [esp + edi*4 + 0x74]
or eax, ecx
push ebx
push edx
mov dword [esp + 0x5c], eax
call fcn.004a33e0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4a47b6
lea edx, [edi + ebp]
jmp 0x4a46a4
mov edx, dword [esp + 0x3c]
mov ebx, dword [ebx]
movzx ecx, byte [ebx + 1]
add ecx, dword [esp + 0x44]
movzx eax, word [ebx + 0x10]
lea eax, [ecx + eax + 1]
mov ecx, edi
dec edx
dec edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], edx
test ecx, ecx
je 0x4a47d2
mov cl, byte [esi + 1]
test cl, cl
je 0x4a471d
movzx eax, word [esi + 0x18]
cmp edx, eax
jne 0x4a471d
mov eax, dword [esi + 0x14]
movzx ecx, byte [eax]
movzx ebp, byte [eax + 1]
movzx edx, byte [eax + 2]
shl ecx, 8
or ebp, ecx
movzx ecx, byte [eax + 3]
shl ebp, 8
or ebp, edx
shl ebp, 8
mov dword [esp + edi*4 + 0x94], eax
or ebp, ecx
push eax
mov eax, esi
mov dword [esp + 0x58], ebp
call fcn.0047b5a0
movzx edx, ax
add esp, 4
mov dword [esp + edi*4 + 0x58], edx
mov byte [esi + 1], 0
jmp 0x4a4796
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x40]
movzx ecx, cl
mov edx, ebx
sub edx, ecx
movzx ecx, word [esi + 0xc]
add edx, edi
add ecx, eax
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
movzx ebp, byte [eax + edx + 1]
movzx ecx, byte [eax + edx + 2]
add eax, edx
movzx edx, byte [eax]
shl edx, 8
or ebp, edx
movzx edx, byte [eax + 3]
shl ebp, 8
or ebp, ecx
shl ebp, 8
mov dword [esp + edi*4 + 0x94], eax
or ebp, edx
push eax
mov eax, esi
mov dword [esp + 0x58], ebp
call fcn.0047b5a0
movzx eax, ax
push eax
mov dword [esp + edi*4 + 0x60], eax
movzx eax, byte [esi + 1]
sub ebx, eax
add ebx, edi
push ebx
call fcn.0047c2f0
add esp, 0xc
mov ecx, dword [esp + 0x28]
lea ebx, [esp + edi*4 + 0x74]
push ebx
push ecx
mov eax, ebp
call fcn.004a33e0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4a46a0
lea edx, [edi*4]
push edx
lea eax, [esp + 0x78]
push 0
push eax
call fcn.00512510
add esp, 0xc
jmp 0x4a50a1
mov ecx, dword [esp + 0x28]
lea esi, [eax + 3]
movzx eax, word [ecx + 0x14]
lea ecx, [eax + 0x50]
mov dword [esp + 0x70], ecx
imul ecx, dword [esp + 0x24]
and esi, 0xfffffffc
lea edx, [esi + esi*2]
add ecx, eax
lea edi, [ecx + edx*2]
call fcn.00482020
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4a480e
mov dword [esp + 0x10], 7
jmp 0x4a50a1
lea ebp, [eax + esi*4]
lea eax, [ebp + esi*2]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x74]
movzx cx, byte [eax + 3]
movzx eax, byte [eax + 4]
add cx, cx
add cx, cx
cmp dword [esp + 0x24], 0
movzx edx, cx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], 0
jle 0x4a49ef
mov dword [esp + 0x6c], 0
jmp 0x4a4860
mov edx, dword [esp + 0x28]
movzx ecx, word [edx + 0x14]
add ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x3c]
lea ebx, [ecx + eax]
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.00513600
movzx esi, word [ebx + 0x10]
movzx ecx, byte [ebx + 1]
mov edi, dword [esp + 0x38]
add esi, ecx
add esp, 0xc
mov dword [esp + 0x50], esi
mov dword [esp + 0x40], 0
test esi, esi
jle 0x4a4938
movzx eax, byte [ebx + 1]
sub eax, 1
mov ecx, dword [esp + 0x40]
js 0x4a48ef
lea edx, [ebx + eax*8 + 0x14]
movzx esi, word [edx + 4]
cmp esi, ecx
jg 0x4a48e3
je 0x4a49b4
dec ecx
dec eax
sub edx, 8
test eax, eax
jge 0x4a48d4
mov esi, dword [esp + 0x50]
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 + 0x1c]
mov dword [edx + edi*4], eax
push eax
mov eax, ebx
call fcn.0047b5a0
mov word [ebp + edi*2], ax
mov eax, dword [esp + 0x44]
inc eax
add esp, 4
inc edi
cmp eax, esi
mov dword [esp + 0x40], eax
jl 0x4a48c3
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x24]
dec eax
cmp dword [esp + 0x14], eax
jge 0x4a49d4
cmp dword [esp + 0x30], 0
jne 0x4a49d4
mov edx, dword [esp + 0x14]
movzx eax, word [esp + edx*4 + 0x58]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov word [ebp + edi*2], ax
movzx eax, ax
add esi, ecx
push eax
add ecx, eax
mov eax, dword [esp + edx*4 + 0x98]
push eax
push esi
mov dword [esp + 0x44], ecx
call fcn.00513600
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x28]
movzx ecx, ax
add ecx, esi
mov dword [edx + edi*4], ecx
sub word [ebp + edi*2], ax
movzx eax, word [ebp + edi*2]
add esp, 0xc
cmp byte [ebx + 3], 0
jne 0x4a49bf
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + 8]
mov ecx, edx
mov edx, dword [ecx + edi*4]
mov dword [edx], eax
jmp 0x4a49cf
mov eax, dword [edx]
mov esi, dword [esp + 0x50]
jmp 0x4a490f
cmp ax, 4
jae 0x4a49cf
mov ecx, 4
mov word [ebp + edi*2], cx
inc edi
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x70]
add dword [esp + 0x6c], edx
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
jl 0x4a4860
mov ecx, dword [esp + 0x28]
movzx eax, word [esp + 0x4c]
movzx edx, word [ecx + 0x16]
mov edi, dword [esp + 0x2c]
lea esi, [edx + eax - 0xc]
xor ecx, ecx
xor ebx, ebx
xor eax, eax
test edi, edi
jle 0x4a4a43
mov edi, edi
movzx edx, word [ebp + ecx*2]
lea eax, [eax + edx + 2]
cmp eax, esi
jle 0x4a4a3e
sub eax, edx
cmp dword [esp + 0x30], 0
mov dword [esp + ebx*4 + 0x58], eax
mov dword [esp + ebx*4 + 0x80], ecx
je 0x4a4a32
dec ecx
inc ebx
xor eax, eax
cmp ebx, 4
jg 0x4a4ad1
inc ecx
cmp ecx, edi
jl 0x4a4a10
mov dword [esp + ebx*4 + 0x80], edi
inc ebx
mov dword [esp + ebx*4 + 0x54], eax
lea edi, [ebx - 1]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x14], edi
test edi, edi
jle 0x4a4ac7
mov edi, edi
mov edx, dword [esp + edi*4 + 0x58]
mov esi, dword [esp + edi*4 + 0x54]
mov eax, dword [esp + edi*4 + 0x7c]
dec eax
mov ecx, eax
sub ecx, dword [esp + 0x30]
inc ecx
test edx, edx
je 0x4a4a95
movzx edi, word [ebp + eax*2]
mov ebx, esi
sub ebx, edi
movzx edi, word [ebp + ecx*2]
lea edi, [edi + edx + 2]
sub ebx, 2
cmp edi, ebx
mov edi, dword [esp + 0x14]
jg 0x4a4ab2
movzx ecx, word [ebp + ecx*2]
movzx eax, word [ebp + eax*2]
lea edx, [edx + ecx + 2]
mov ecx, 0xfffffffe
sub ecx, eax
add esi, ecx
dec dword [esp + edi*4 + 0x7c]
jmp 0x4a4a68
mov dword [esp + edi*4 + 0x58], edx
mov dword [esp + edi*4 + 0x54], esi
dec edi
mov dword [esp + 0x14], edi
test edi, edi
jg 0x4a4a60
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
cmp dword [eax + 0x48], 1
ja 0x4a4ade
mov dword [esp + 0x10], 0xb
jmp 0x4a50a1
mov edx, dword [eax + 0x40]
movzx eax, byte [edx]
xor esi, esi
mov dword [esp + 0x3c], eax
test ebx, ebx
jle 0x4a4b90
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
lea ebx, [ebx]
cmp esi, dword [esp + 0x24]
jge 0x4a4b29
mov eax, dword [esp + esi*4 + 0x74]
mov ecx, dword [eax + 0x44]
push ecx
mov dword [esp + esi*4 + 0x5c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + esi*4 + 0x78], 0
call fcn.0048a5d0
add esp, 4
inc ebp
jmp 0x4a4b77
mov edx, dword [esp + 0x54]
push 0
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
call fcn.004992f0
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4a509d
mov eax, dword [esp + 0x38]
inc ebp
cmp byte [edi + 0x12], 0
mov dword [esp + esi*4 + 0x58], eax
je 0x4a4b83
mov edx, dword [esp + 0xcc]
mov ecx, dword [edx + 0x48]
mov eax, dword [eax + 0x48]
push ecx
push 5
push edi
call fcn.00497d70
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4a509d
inc esi
cmp esi, ebx
jl 0x4a4b00
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x24]
cmp esi, ebp
jge 0x4a4c33
lea esp, [esp]
mov edi, dword [esp + esi*4 + 0x74]
mov edx, dword [edi + 0x48]
mov eax, dword [edi + 0x3c]
push edx
push edi
push eax
call fcn.004999d0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4a50a1
test edi, edi
je 0x4a4c22
mov eax, dword [edi + 0x44]
test eax, eax
je 0x4a4c22
mov edi, dword [eax + 0x10]
call fcn.00479570
mov ecx, dword [edi + 0xa8]
cmp dword [ecx + 0xc], 0
jne 0x4a4c22
cmp byte [edi + 4], 0
je 0x4a4bf4
cmp dword [edi + 0x4c], 0
jl 0x4a4c22
jg 0x4a4bf4
cmp dword [edi + 0x48], 0
jbe 0x4a4c22
cmp dword [edi + 0x24], 0
jne 0x4a4c1b
cmp byte [edi + 0xe], 2
jb 0x4a4c1b
mov eax, dword [0x59f064]
test eax, eax
je 0x4a4c0b
call eax
call fcn.004916d0
mov eax, dword [0x59f068]
test eax, eax
je 0x4a4c1b
call eax
mov eax, edi
call fcn.00483740
mov dword [esp + esi*4 + 0x74], 0
inc esi
cmp esi, ebp
jl 0x4a4ba0
lea eax, [ebx - 1]
xor ecx, ecx
test eax, eax
jle 0x4a4c95
lea esp, [esp]
lea eax, [esp + ecx*4 + 0x58]
mov dword [esp + 0x38], eax
mov eax, dword [eax]
mov esi, dword [eax + 0x48]
lea ebp, [ecx + 1]
cmp ebp, ebx
mov dword [esp + 0x50], eax
mov edi, ecx
mov eax, ebp
jge 0x4a4c8c
lea esp, [esp]
mov edx, dword [esp + eax*4 + 0x58]
mov edx, dword [edx + 0x48]
cmp edx, esi
jae 0x4a4c6f
mov edi, eax
mov esi, edx
inc eax
cmp eax, ebx
jl 0x4a4c60
cmp edi, ecx
jle 0x4a4c8c
mov ecx, dword [esp + edi*4 + 0x58]
mov edx, dword [esp + 0x38]
lea eax, [esp + edi*4 + 0x58]
mov dword [edx], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax], ecx
mov ecx, ebp
lea eax, [ebx - 1]
cmp ecx, eax
jl 0x4a4c40
mov esi, dword [esp + 0x20]
mov eax, dword [esp + esi*4 + 0x54]
mov eax, dword [eax + 0x48]
mov ecx, dword [esp + 0x48]
mov edx, eax
shr edx, 0x18
mov byte [ecx], dl
mov edx, eax
shr edx, 0x10
mov byte [ecx + 1], dl
mov edx, eax
shr edx, 8
xor ebx, ebx
xor edi, edi
mov byte [ecx + 2], dl
mov byte [ecx + 3], al
mov dword [esp + 0x14], ebx
test esi, esi
jle 0x4a4ded
mov edi, edi
mov esi, dword [esp + ebx*4 + 0x58]
mov ecx, dword [esp + 0x3c]
call fcn.0047bc80
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + ebx*4 + 0x80]
lea ecx, [eax + edi*2]
push ecx
lea eax, [edx + edi*4]
push eax
mov ecx, ebp
sub ecx, edi
push ecx
push esi
call fcn.0047c3b0
mov edi, ebp
add esp, 0x10
cmp edi, dword [esp + 0x2c]
jge 0x4a4dda
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
movzx eax, word [eax + edi*2]
mov ebp, dword [edx + edi*4]
movzx edx, word [esp + 0x4c]
mov ebx, dword [esp + 0xd0]
movzx ecx, ax
add ecx, edx
mov edx, dword [esp + 0x34]
add ebx, edx
cmp byte [esi + 3], 0
jne 0x4a4d45
mov eax, dword [esi + 0x40]
mov edx, dword [ebp]
mov dword [eax + 8], edx
jmp 0x4a4da6
cmp dword [esp + 0x30], 0
je 0x4a4d8a
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + edi*4 - 4]
lea eax, [esp + 0xa8]
dec edi
push eax
push edx
push esi
call fcn.0047b450
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xbc]
push eax
push ecx
lea ecx, [ebx + 4]
mov ebp, ebx
call fcn.00478300
mov ecx, eax
add esp, 0x14
add ecx, 4
xor ebx, ebx
jmp 0x4a4da6
sub ebp, 4
cmp ax, 4
jne 0x4a4da6
mov eax, dword [esp + 0xcc]
push ebp
call fcn.0047b5a0
add esp, 4
movzx ecx, ax
mov edx, dword [esi + 0x48]
mov eax, dword [esp + 0x18]
add dword [esp + 0x34], ecx
push edx
mov edx, dword [esp + 0xd0]
push ebp
push eax
mov eax, ebx
call fcn.0049a130
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4a50a1
mov ebx, dword [esp + 0x14]
inc edi
inc dword [esp + 0x18]
inc ebx
cmp ebx, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
jl 0x4a4cd0
mov esi, dword [esp + 0x20]
test byte [esp + 0x3c], 8
jne 0x4a4e0f
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + ecx*4 + 0x98]
mov eax, dword [edx + 0x40]
mov esi, dword [esp + esi*4 + 0x54]
mov ecx, dword [esi + 0x40]
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
cmp dword [esp + 0xd4], 0
mov ebx, dword [esp + 0x58]
je 0x4a4e61
mov eax, dword [esp + 0xcc]
cmp word [eax + 0x10], 0
jne 0x4a4e61
movzx cx, byte [eax + 5]
cmp cx, word [ebx + 0xe]
ja 0x4a4e61
call fcn.0049a4b0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4a50a1
mov edx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x3c]
push edx
push ebx
push eax
call fcn.004999d0
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x4a50a1
mov ecx, dword [esp + 0x28]
cmp byte [ecx + 0x12], 0
je 0x4a50a1
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x9c]
movzx eax, byte [ebx + 1]
movzx esi, word [ebx + 0x10]
xor edi, edi
add esi, eax
mov dword [esp + 0x34], eax
cmp eax, edi
je 0x4a4e94
movzx ebp, word [ebx + 0x18]
jmp 0x4a4e97
or ebp, 0xffffffff
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x40], edi
jle 0x4a5040
mov dword [esp + 0x48], edi
lea ecx, [ecx]
cmp dword [esp + 0x10], 0
jne 0x4a5040
xor ecx, ecx
cmp edi, esi
jne 0x4a4f0b
cmp dword [esp + 0x30], ecx
sete cl
jmp 0x4a4ed0
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + eax*4 + 0xa0]
movzx edx, word [ebx + 0x10]
inc eax
mov dword [esp + 0x40], eax
mov al, byte [ebx + 1]
movzx esi, al
add edx, ecx
add esi, edx
add esi, edi
test al, al
je 0x4a4f03
movzx ebp, word [ebx + 0x18]
movzx eax, al
add ebp, ecx
mov dword [esp + 0x34], eax
add ebp, edi
cmp edi, esi
je 0x4a4ed0
mov dword [esp + 0x14], ebp
cmp edi, ebp
jne 0x4a4f26
mov eax, dword [esp + 0x34]
dec eax
mov ecx, 1
mov dword [esp + 0x34], eax
test eax, eax
jle 0x4a4f26
inc ebp
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x48]
cmp edi, dword [esp + eax + 0x80]
jne 0x4a4f4d
mov edx, dword [esp + eax + 0x5c]
add eax, 4
cmp dword [esp + 0x30], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x18], edx
je 0x4a5035
test ecx, ecx
jne 0x4a4f61
mov eax, dword [ebx + 0x48]
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 0x48]
je 0x4a5035
cmp word [esp + 0x4c], 0
jne 0x4a4fa9
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + edi*4]
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
mov edx, dword [esp + 0x18]
shl eax, 8
or eax, ecx
mov ecx, dword [edx + 0x48]
mov edx, dword [esp + 0x28]
push ecx
push 5
push edx
call fcn.00497d70
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov cx, word [eax + edi*2]
mov edx, dword [esp + 0x18]
cmp cx, word [edx + 0xa]
jbe 0x4a5035
cmp dword [esp + 0x10], 0
jne 0x4a5035
mov eax, dword [esp + 0x1c]
mov ebp, dword [eax + edi*4]
lea ecx, [esp + 0xa8]
push ecx
push ebp
push edx
call fcn.0047b450
mov ax, word [esp + 0xd0]
add esp, 0xc
test ax, ax
je 0x4a5029
movzx ecx, ax
movzx eax, byte [ecx + ebp]
movzx edx, byte [ecx + ebp + 1]
add ecx, ebp
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 + 0x18]
mov edx, dword [ecx + 0x48]
mov ecx, dword [ecx + 0x3c]
push edx
push 3
push ecx
call fcn.00497d70
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x4a5031
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x14]
inc edi
cmp edi, dword [esp + 0x2c]
jl 0x4a4eb0
cmp word [esp + 0x4c], 0
jne 0x4a50a1
xor esi, esi
cmp dword [esp + 0x10], esi
jne 0x4a50a1
cmp esi, dword [esp + 0x20]
jge 0x4a50a1
mov edx, dword [esp + esi*4 + 0x58]
mov ecx, dword [edx + 0x40]
movzx edi, byte [ecx + 8]
movzx eax, byte [ecx + 9]
mov edx, dword [edx + 0x48]
add ecx, 8
shl edi, 8
or eax, edi
movzx edi, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, edi
shl eax, 8
push edx
or eax, ecx
mov ecx, dword [esp + 0x2c]
push 5
push ecx
call fcn.00497d70
add esp, 0xc
inc esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4a5050
jmp 0x4a50a1
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x1c]
call fcn.00482150
mov ebx, dword [esp + 0x24]
xor esi, esi
test ebx, ebx
jle 0x4a511e
mov eax, dword [esp + esi*4 + 0x74]
test eax, eax
je 0x4a5119
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4a5119
mov edi, dword [eax + 0x10]
call fcn.00479570
mov edx, dword [edi + 0xa8]
cmp dword [edx + 0xc], 0
jne 0x4a5119
cmp byte [edi + 4], 0
je 0x4a50eb
cmp dword [edi + 0x4c], 0
jl 0x4a5119
jg 0x4a50eb
cmp dword [edi + 0x48], 0
jbe 0x4a5119
cmp dword [edi + 0x24], 0
jne 0x4a5112
cmp byte [edi + 0xe], 2
jb 0x4a5112
mov eax, dword [0x59f064]
test eax, eax
je 0x4a5102
call eax
call fcn.004916d0
mov eax, dword [0x59f068]
test eax, eax
je 0x4a5112
call eax
mov eax, edi
call fcn.00483740
inc esi
cmp esi, ebx
jl 0x4a50b4
mov ebx, dword [esp + 0x20]
xor esi, esi
test ebx, ebx
jle 0x4a5192
mov eax, dword [esp + esi*4 + 0x58]
test eax, eax
je 0x4a518d
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4a518d
mov edi, dword [eax + 0x10]
call fcn.00479570
mov eax, dword [edi + 0xa8]
cmp dword [eax + 0xc], 0
jne 0x4a518d
cmp byte [edi + 4], 0
je 0x4a515f
cmp dword [edi + 0x4c], 0
jl 0x4a518d
jg 0x4a515f
cmp dword [edi + 0x48], 0
jbe 0x4a518d
cmp dword [edi + 0x24], 0
jne 0x4a5186
cmp byte [edi + 0xe], 2
jb 0x4a5186
mov eax, dword [0x59f064]
test eax, eax
je 0x4a5176
call eax
call fcn.004916d0
mov eax, dword [0x59f068]
test eax, eax
je 0x4a5186
call eax
mov eax, edi
call fcn.00483740
inc esi
cmp esi, ebx
jl 0x4a5128
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xb8
ret