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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
cmp dword [ebp + 8], 0
push ebx
mov ebx, ecx
mov dword [esp + 0x14], 0
push esi
push edi
mov dword [esp + 0x6c], ebx
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x44], eax
jne 0x4b7436
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx esi, word [ebx + 0x10]
movzx ecx, byte [ebx + 1]
lea edi, [ecx + esi]
cmp edi, 2
jae 0x4b7451
lea edx, [edi + 1]
xor eax, eax
mov dword [esp + 0x24], edx
jmp 0x4b7470
mov dword [esp + 0x24], 3
test edx, edx
jne 0x4b7461
xor eax, eax
jmp 0x4b746b
lea eax, [edi - 2]
cmp edx, edi
je 0x4b746b
lea eax, [edx - 1]
mov edi, 2
mov dword [esp + 0x4c], eax
sub eax, ecx
mov ecx, dword [ebx + 0x40]
lea edx, [eax + edi]
cmp edx, esi
jne 0x4b7489
movzx edx, byte [ebx + 5]
add edx, 8
jmp 0x4b74a9
movzx eax, word [ebx + 0xc]
add eax, ecx
movzx esi, byte [eax + edx*2 + 1]
movzx eax, byte [eax + edx*2]
mov edx, esi
shl eax, 8
or edx, eax
mov dword [esp + 0x30], esi
movzx eax, word [ebx + 0x12]
and edx, eax
movzx esi, byte [edx + ecx]
add edx, ecx
shl esi, 8
mov dword [esp + 0x30], edx
movzx eax, byte [edx + 1]
or esi, eax
movzx eax, byte [edx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 3]
shl esi, 8
or esi, eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x2c], esi
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x54]
mov ebx, esi
push 0
push eax
mov ecx, dword [ecx]
mov edx, ebx
call fcn.004b2b40
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
test esi, esi
jne 0x4b808e
mov ecx, dword [esp + 0x54]
cmp ebx, 1
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x3c], eax
setne al
dec al
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ecx
lea ebx, [edi*4]
and al, 0x64
mov dword [esp + ebx + 0x90], esi
mov ecx, esi
mov byte [esi + 5], al
call fcn.004b43a0
mov edx, eax
mov eax, ebx
mov dword [esp + 0x10], edx
test edx, edx
je 0x4b754f
mov ecx, dword [esi + 0x44]
test ecx, ecx
jne 0x4b7661
mov dword [esp + 0x34], edx
test edx, edx
jne 0x4b8095
mov eax, dword [esp + eax + 0x90]
movzx esi, word [eax + 0x10]
movzx eax, byte [eax + 1]
inc eax
add eax, dword [esp + 0x18]
add esi, eax
mov eax, edi
dec edi
mov dword [esp + 0x18], esi
test eax, eax
je 0x4b767f
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x6c]
lea ecx, [edx + edi]
movzx eax, word [ebx + 0x18]
cmp ecx, eax
jne 0x4b75dd
cmp byte [ebx + 1], 0
je 0x4b75dd
mov edx, dword [ebx + 0x14]
mov ecx, ebx
mov dword [esp + edi*4 + 0x70], edx
movzx esi, byte [edx]
movzx eax, byte [edx + 1]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 3]
shl esi, 8
or esi, eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x2c], esi
call fcn.004b3dc0
movzx eax, ax
mov dword [esp + edi*4 + 0x7c], eax
mov byte [ebx + 1], 0
jmp 0x4b74d6
movzx eax, byte [ebx + 1]
mov ecx, edx
sub ecx, eax
movzx eax, word [ebx + 0xc]
add eax, dword [ebx + 0x40]
add ecx, edi
movzx edx, byte [eax + ecx*2]
movzx eax, byte [eax + ecx*2 + 1]
mov ecx, ebx
shl edx, 8
or edx, eax
movzx eax, word [ebx + 0x12]
and edx, eax
add edx, dword [ebx + 0x40]
mov dword [esp + edi*4 + 0x70], edx
movzx esi, byte [edx]
movzx eax, byte [edx + 1]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 3]
shl esi, 8
or esi, eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x2c], esi
call fcn.004b3dc0
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x34]
movzx eax, ax
push ecx
mov dword [esp + edi*4 + 0x80], eax
mov ecx, ebx
push eax
movzx eax, byte [ebx + 1]
sub edx, eax
add edx, edi
call fcn.004b6eb0
add esp, 8
jmp 0x4b74d6
mov esi, dword [ecx + 0x10]
call fcn.004ae760
mov ecx, esi
call fcn.004b2ae0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, ebx
jmp 0x4b8095
mov eax, dword [esp + 0x44]
lea edi, [esi + 3]
and edi, 0xfffffffc
movzx edx, word [eax + 0x12]
lea eax, [edx + 0x50]
mov ecx, eax
mov dword [esp + 0x28], eax
imul ecx, dword [esp + 0x24]
lea eax, [edi + edi*2]
add ecx, edx
mov edx, dword [0x55d4a8]
lea esi, [ecx + eax*2]
cmp dword [0x55ad6c], esi
jl 0x4b76e6
test edx, edx
je 0x4b76c5
push edx
call dword [0x55ad18]
mov edx, dword [0x55d4a8]
add esp, 4
cmp dword [0x55d4a0], 0
jne 0x4b7764
test edx, edx
je 0x4b76e6
push edx
call dword [0x55ad20]
mov edx, dword [0x55d4a8]
add esp, 4
cmp dword [0x55acd0], 0
je 0x4b77cd
test edx, edx
je 0x4b7701
push edx
call dword [0x55ad18]
add esp, 4
mov eax, dword [0x55d374]
lea edx, [esp + 0x18]
cmp esi, eax
mov dword [0x55d350], esi
mov ecx, esi
cmovg eax, esi
mov dword [0x55d374], eax
call fcn.004a9530
mov edx, dword [esp + 0x18]
mov ecx, eax
mov dword [esp + 0x20], edx
test edx, edx
je 0x4b774a
add ecx, dword [0x55d340]
mov eax, dword [0x55d364]
cmp ecx, eax
mov dword [0x55d340], ecx
cmovg eax, ecx
mov dword [0x55d364], eax
mov eax, dword [0x55d4a8]
test eax, eax
je 0x4b77dd
push eax
call dword [0x55ad20]
mov edx, dword [esp + 0x1c]
jmp 0x4b77da
mov ecx, dword [0x55d4a0]
mov eax, dword [0x55d4c0]
dec ecx
mov dword [0x55d4a0], ecx
mov dword [0x55d350], esi
mov ebx, dword [eax + ecx*4]
mov ecx, dword [0x55d33c]
imul ebx, dword [0x55ad6c]
inc ecx
mov eax, dword [0x55d360]
cmp ecx, eax
mov dword [0x55d33c], ecx
cmovg eax, ecx
mov dword [0x55d360], eax
mov eax, dword [0x55d374]
cmp esi, eax
cmovg eax, esi
mov dword [0x55d374], eax
test edx, edx
je 0x4b77bf
push edx
call dword [0x55ad20]
add esp, 4
mov edx, dword [0x55ad68]
add edx, ebx
mov dword [esp + 0x20], edx
jmp 0x4b77dd
push esi
call dword [0x55ace8]
mov edx, eax
mov dword [esp + 0x24], eax
add esp, 4
test edx, edx
jne 0x4b77e9
lea ebx, [edx + 7]
jmp 0x4b80af
mov ecx, dword [esp + 0x90]
lea esi, [edx + edi*4]
xor ebx, ebx
mov dword [esp + 0x48], esi
lea edx, [esi + edi*2]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x5c], edx
movzx eax, byte [ecx + 3]
mov cl, byte [ecx + 4]
shl ax, 2
mov byte [esp + 0x17], cl
movzx eax, ax
movzx ecx, cl
mov dword [esp + 0x68], eax
mov dword [esp + 0x60], ecx
cmp dword [esp + 0x24], ebx
je 0x4b79d9
xor ecx, ecx
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x44]
movzx edi, word [eax + 0x12]
add edi, ecx
add edi, edx
mov edx, dword [esp + ebx*4 + 0x90]
mov dword [esp + ebx*4 + 0xb4], edi
movups xmm0, xmmword [edx]
lea ecx, [edi + 0x4c]
movups xmmword [edi], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [edx + 0x20]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [edx + 0x30]
movups xmmword [edi + 0x30], xmm0
movq xmm0, qword [edx + 0x40]
movq qword [edi + 0x40], xmm0
mov eax, dword [edx + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 0x40], ecx
movzx eax, word [eax + 0x12]
push eax
push dword [edx + 0x40]
push ecx
call fcn.004fcb50
movzx ecx, word [edi + 0x10]
add esp, 0xc
movzx eax, byte [edi + 1]
xor ebx, ebx
add eax, ecx
mov dword [esp + 0x54], eax
je 0x4b7921
movzx ecx, byte [edi + 1]
mov eax, ebx
sub ecx, 1
js 0x4b78d3
lea esi, [ecx*8 + 0x14]
add esi, edi
nop word [eax + eax]
movzx edx, word [esi + 4]
cmp edx, eax
jg 0x4b78cb
je 0x4b791d
dec eax
sub esi, 8
sub ecx, 1
jns 0x4b78c0
movzx ecx, word [edi + 0xc]
add ecx, dword [edi + 0x40]
movzx edx, byte [ecx + eax*2 + 1]
movzx eax, byte [ecx + eax*2]
shl eax, 8
or edx, eax
movzx eax, word [edi + 0x12]
and edx, eax
add edx, dword [edi + 0x40]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [eax + ecx*4], edx
mov ecx, edi
call fcn.004b3dc0
mov edx, dword [esp + 0x1c]
inc ebx
mov esi, dword [esp + 0x48]
mov word [esi + edx*2], ax
inc edx
mov dword [esp + 0x1c], edx
cmp ebx, dword [esp + 0x54]
jl 0x4b78a6
jmp 0x4b7925
mov edx, dword [esi]
jmp 0x4b78f1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
dec eax
cmp ebx, eax
jge 0x4b79b6
cmp byte [esp + 0x17], 0
jne 0x4b79b6
movzx eax, word [esp + ebx*4 + 0x7c]
mov word [esi + edx*2], ax
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x5c]
push eax
push dword [esp + ebx*4 + 0x74]
add esi, edx
add edx, eax
push esi
mov dword [esp + 0x48], edx
call fcn.004fcb50
mov eax, dword [esp + 0x74]
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
movzx eax, ax
add eax, esi
mov esi, dword [esp + 0x48]
mov dword [ecx + edx*4], eax
mov ax, word [esi + edx*2]
sub ax, word [esp + 0x68]
mov word [esi + edx*2], ax
cmp byte [edi + 3], 0
movzx ecx, ax
jne 0x4b79a3
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 0x40]
mov ecx, dword [ecx + edx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x4b79b1
cmp ecx, 4
jae 0x4b79b1
mov eax, 4
mov word [esi + edx*2], ax
inc edx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x58]
inc ebx
add ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x58], ecx
cmp ebx, dword [esp + 0x24]
jl 0x4b7831
mov eax, dword [esp + 0x68]
movzx esi, ax
xor ecx, ecx
mov eax, dword [esp + 0x44]
xor ebx, ebx
xor edx, edx
movzx eax, word [eax + 0x14]
add eax, 0xfffffff4
add esi, eax
cmp dword [esp + 0x1c], ecx
jle 0x4b7a39
mov edi, dword [esp + 0x48]
nop dword [eax]
movzx eax, word [edi + ecx*2]
add edx, 2
add edx, eax
cmp edx, esi
jle 0x4b7a32
sub edx, eax
mov dword [esp + ebx*4 + 0xa0], ecx
mov dword [esp + ebx*4 + 0x7c], edx
inc ebx
xor edx, edx
cmp ebx, 4
jg 0x4b7b11
cmp byte [esp + 0x17], dl
lea eax, [ecx - 1]
cmove eax, ecx
mov ecx, eax
inc ecx
cmp ecx, dword [esp + 0x1c]
jl 0x4b7a00
mov ecx, dword [esp + 0x1c]
mov eax, ebx
mov dword [esp + ebx*4 + 0x7c], edx
mov dword [esp + ebx*4 + 0xa0], ecx
inc ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], eax
test eax, eax
jle 0x4b7b04
nop
mov edi, dword [esp + eax*4 + 0x9c]
lea ecx, [esp + 0x7c]
mov edx, dword [ecx + eax*4]
lea ecx, [ecx + eax*4]
mov ebx, dword [esp + eax*4 + 0x78]
mov dword [esp + 0x64], ecx
lea ecx, [esp + eax*4 + 0x78]
lea eax, [esp + eax*4 + 0x9c]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x9c], eax
lea eax, [edi - 1]
lea ecx, [eax + eax]
mov dword [esp + 0x5c], edi
sub eax, dword [esp + 0x60]
lea esi, [eax*2 + 2]
lea eax, [edi*2 - 4]
mov dword [esp + 0x58], eax
mov eax, edi
sub eax, dword [esp + 0x60]
lea eax, [eax*2 - 2]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
add esi, eax
test edx, edx
je 0x4b7b1b
lea edi, [ecx + eax]
mov ecx, ebx
movzx eax, word [edi]
sub ecx, eax
movzx eax, word [esi]
add eax, 2
sub ecx, 2
add eax, edx
cmp eax, ecx
jle 0x4b7b1e
mov eax, dword [esp + 0x64]
mov dword [eax], edx
mov eax, dword [esp + 0x70]
mov dword [eax], ebx
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
test eax, eax
jg 0x4b7a60
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x90]
cmp dword [eax + 0x48], 1
ja 0x4b7b63
mov ebx, 0xb
jmp 0x4b7bc7
lea edi, [eax + ecx]
movzx eax, word [esi]
mov ecx, 0xfffffffe
add eax, 2
add edx, eax
movzx eax, word [edi]
mov edi, dword [esp + 0x5c]
sub ecx, eax
mov eax, dword [esp + 0x9c]
dec edi
add ebx, ecx
mov dword [esp + 0x5c], edi
mov dword [eax], edi
mov eax, dword [esp + 0x58]
mov ecx, eax
mov edi, dword [esp + 0x18]
sub eax, 2
mov esi, edi
mov dword [esp + 0x58], eax
sub edi, 2
mov dword [esp + 0x18], edi
jmp 0x4b7ac0
mov eax, dword [eax + 0x40]
xor edi, edi
mov al, byte [eax]
mov byte [esp + 0x43], al
movzx eax, al
mov dword [esp + 0x18], eax
test ebx, ebx
jle 0x4b7c9a
mov esi, dword [esp + 0x50]
cmp edi, dword [esp + 0x24]
jge 0x4b7c58
mov ecx, dword [esp + edi*4 + 0x90]
mov dword [esp + edi*4 + 0x7c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + edi*4 + 0x90], 0
mov ecx, dword [ecx + 0x44]
call fcn.004b3240
inc dword [esp + 0x38]
mov ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x4b7c91
mov ebx, dword [esp + 0x10]
mov eax, dword [0x55ad68]
mov edi, dword [esp + 0x20]
test eax, eax
je 0x4b8001
cmp edi, eax
jb 0x4b8001
cmp edi, dword [0x55d4c0]
jae 0x4b8001
sub edi, eax
mov eax, edi
cdq
idiv dword [0x55ad6c]
mov esi, eax
mov eax, dword [0x55d4a8]
test eax, eax
je 0x4b7c0c
push eax
call dword [0x55ad18]
add esp, 4
mov eax, dword [0x55d4a0]
mov ecx, dword [0x55d4c0]
mov dword [ecx + eax*4], esi
mov ecx, dword [0x55d33c]
mov eax, dword [0x55d360]
dec ecx
inc dword [0x55d4a0]
cmp ecx, eax
mov dword [0x55d33c], ecx
cmovg eax, ecx
mov dword [0x55d360], eax
mov eax, dword [0x55d4a8]
test eax, eax
je 0x4b80af
push eax
call dword [0x55ad20]
add esp, 4
jmp 0x4b80af
push ecx
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x30]
push esi
push eax
lea edx, [esp + 0x34]
call fcn.004b6290
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], ecx
test ecx, ecx
jne 0x4b7bc3
mov eax, dword [esp + 0x28]
inc dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
mov dword [esp + edi*4 + 0x7c], eax
inc edi
cmp edi, ebx
jl 0x4b7b81
mov ebx, dword [esp + 0x24]
cmp edi, ebx
jge 0x4b7d0f
mov ecx, dword [esp + 0x10]
nop word [eax + eax]
mov esi, dword [esp + edi*4 + 0x90]
test ecx, ecx
jne 0x4b7bc3
push dword [esi + 0x48]
mov ecx, dword [esi + 0x3c]
mov edx, esi
call fcn.004b6720
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], ecx
test ecx, ecx
jne 0x4b7bc3
test esi, esi
je 0x4b7cff
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4b7cfb
mov esi, dword [ecx + 0x10]
call fcn.004ae760
mov ecx, esi
call fcn.004b2ae0
mov ecx, dword [esp + 0x10]
mov dword [esp + edi*4 + 0x90], 0
inc edi
cmp edi, ebx
jl 0x4b7cb0
xor eax, eax
mov dword [esp + 0x60], eax
cmp dword [esp + 0x54], eax
jle 0x4b7d89
mov ecx, dword [esp + 0x3c]
nop
lea edx, [esp + 0x7c]
mov ebx, eax
lea edx, [edx + eax*4]
inc eax
mov dword [esp + 0x70], edx
mov edi, eax
mov edx, dword [edx]
mov dword [esp + 0x64], edx
mov dword [esp + 0x28], eax
mov esi, dword [edx + 0x48]
cmp eax, ecx
jge 0x4b7d7f
mov eax, dword [esp + edi*4 + 0x7c]
mov ecx, esi
mov edx, ebx
mov ebx, edi
mov eax, dword [eax + 0x48]
cmp eax, esi
cmovb esi, eax
cmp eax, ecx
cmovae ebx, edx
inc edi
cmp edi, dword [esp + 0x3c]
jl 0x4b7d41
cmp ebx, dword [esp + 0x60]
jle 0x4b7d77
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + ebx*4 + 0x7c]
mov dword [ecx], eax
mov eax, dword [esp + 0x64]
mov dword [esp + ebx*4 + 0x7c], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], eax
cmp eax, dword [esp + 0x54]
jl 0x4b7d20
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x30], 0
mov edx, dword [esp + ebx*4 + 0x78]
mov dword [esp + 0x64], edx
mov ecx, dword [edx + 0x48]
mov eax, ecx
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
xor eax, eax
mov byte [esi + 3], cl
mov dword [esp + 0x2c], eax
test ebx, ebx
jle 0x4b7f84
mov esi, dword [esp + 0x18]
shr esi, 3
mov dword [esp + 0x70], esi
mov eax, dword [esp + eax*4 + 0x7c]
not esi
and esi, 1
mov bl, byte [eax + 5]
mov edi, dword [eax + 0x3c]
lea ecx, [esi*4 + 8]
movzx edx, bl
add edx, dword [eax + 0x40]
mov al, byte [esp + 0x43]
mov byte [edx], al
mov dword [edx + 1], 0
mov byte [edx + 7], 0
movzx eax, bl
add cx, ax
movzx eax, byte [edi + 0x15]
mov byte [edx + 5], al
movzx eax, byte [edi + 0x14]
mov byte [edx + 6], al
mov edx, dword [esp + 0x2c]
movzx eax, word [edi + 0x14]
movzx esi, cx
sub ax, si
mov ecx, dword [esp + edx*4 + 0x7c]
mov edx, dword [esp + 0x18]
mov word [ecx + 0xe], ax
call fcn.004b4330
mov byte [ecx + 5], bl
mov ebx, dword [esp + 0x2c]
mov word [ecx + 0xc], si
mov byte [ecx + 1], 0
movzx eax, word [edi + 0x12]
mov esi, dword [esp + ebx*4 + 0xa0]
dec ax
mov edi, dword [esp + ebx*4 + 0x7c]
mov edx, esi
mov word [ecx + 0x12], ax
xor eax, eax
mov word [ecx + 0x10], ax
mov eax, dword [esp + 0x48]
mov byte [ecx], 1
mov ecx, dword [esp + 0x30]
sub edx, ecx
lea eax, [eax + ecx*2]
push eax
mov eax, dword [esp + 0x24]
lea eax, [eax + ecx*4]
mov ecx, edi
push eax
call fcn.004b7140
mov ebx, esi
add esp, 8
mov dword [esp + 0x30], ebx
cmp ebx, dword [esp + 0x1c]
jge 0x4b7f69
mov eax, dword [esp + 0x20]
mov esi, dword [eax + ebx*4]
mov eax, dword [esp + 0x48]
movzx ecx, word [eax + ebx*2]
mov ebx, dword [esp + 0x68]
mov eax, dword [esp + 0x78]
add eax, dword [ebp + 8]
movzx edx, bx
mov ebx, dword [esp + 0x30]
add edx, ecx
cmp byte [edi + 3], 0
mov dword [esp + 0x50], eax
jne 0x4b7ecd
mov ecx, dword [edi + 0x40]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x4b7f2a
cmp byte [esp + 0x17], 0
je 0x4b7f14
lea eax, [esp + 0xc0]
dec ebx
push eax
mov eax, dword [esp + 0x24]
mov ecx, edi
mov edx, dword [eax + ebx*4]
call fcn.004b3c90
mov eax, dword [esp + 0x54]
add esp, 4
mov esi, eax
push dword [esp + 0xcc]
lea ecx, [eax + 4]
push dword [esp + 0xcc]
call fcn.004ac500
add esp, 8
lea edx, [eax + 4]
xor eax, eax
jmp 0x4b7f2e
sub esi, 4
cmp ecx, 4
jne 0x4b7f2e
mov ecx, dword [esp + 0x6c]
mov edx, esi
call fcn.004b3dc0
movzx edx, ax
mov eax, dword [esp + 0x50]
add dword [esp + 0x78], edx
lea ecx, [esp + 0x34]
push ecx
push dword [edi + 0x48]
mov ecx, dword [esp + 0x74]
push eax
push edx
push esi
mov esi, dword [esp + 0x60]
mov edx, esi
call fcn.004b6f90
mov ecx, dword [esp + 0x48]
add esp, 0x14
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x4b7bc3
inc ebx
inc esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x70]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x38]
jl 0x4b7dd7
mov edx, dword [esp + 0x64]
test byte [esp + 0x18], 8
jne 0x4b7fa2
mov eax, dword [esp + 0x24]
mov ecx, dword [edx + 0x40]
mov eax, dword [esp + eax*4 + 0xb0]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
cmp dword [ebp + 0xc], 0
je 0x4b7bc3
mov ecx, dword [esp + 0x6c]
cmp word [ecx + 0x10], 0
jne 0x4b7bc3
mov esi, dword [esp + 0x7c]
movzx eax, byte [ecx + 5]
cmp ax, word [esi + 0xe]
ja 0x4b7bc3
lea eax, [esp + 0x34]
mov edx, ecx
push eax
mov ecx, esi
call fcn.004b7350
mov ebx, dword [esp + 0x38]
add esp, 4
test ebx, ebx
jne 0x4b7bc7
push dword [esi + 0x48]
mov ecx, dword [esi + 0x3c]
mov edx, esi
call fcn.004b6720
add esp, 4
mov ebx, eax
jmp 0x4b7bc7
cmp dword [0x55acd0], 0
push edi
je 0x4b8083
call dword [0x55acf4]
mov ecx, dword [0x55d4a8]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x4b802a
push ecx
call dword [0x55ad18]
add esp, 4
mov ecx, dword [0x55d340]
mov eax, dword [0x55d364]
sub ecx, esi
cmp ecx, eax
mov dword [0x55d340], ecx
push edi
cmovg eax, ecx
mov ecx, dword [0x55d330]
sub ecx, esi
mov dword [0x55d364], eax
mov eax, dword [0x55d354]
cmp ecx, eax
mov dword [0x55d330], ecx
cmovg eax, ecx
mov dword [0x55d354], eax
call dword [0x55acec]
mov eax, dword [0x55d4a8]
add esp, 4
test eax, eax
je 0x4b80af
push eax
call dword [0x55ad20]
add esp, 4
jmp 0x4b80af
call dword [0x55acec]
add esp, 4
jmp 0x4b80af
lea eax, [edi*4]
add eax, 4
push eax
lea eax, [esp + 0x94]
push 0
push eax
call fcn.004fd0d0
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esp + 0x24]
xor edi, edi
test eax, eax
je 0x4b80ea
nop dword [eax]
mov ecx, dword [esp + edi*4 + 0x90]
test ecx, ecx
je 0x4b80e5
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x4b80e5
mov esi, dword [ecx + 0x10]
call fcn.004ae760
mov ecx, esi
call fcn.004b2ae0
mov eax, dword [esp + 0x24]
inc edi
cmp edi, eax
jl 0x4b80c0
mov eax, dword [esp + 0x38]
xor edi, edi
test eax, eax
jle 0x4b811b
mov ecx, dword [esp + edi*4 + 0x7c]
test ecx, ecx
je 0x4b8116
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x4b8116
mov esi, dword [ecx + 0x10]
call fcn.004ae760
mov ecx, esi
call fcn.004b2ae0
mov eax, dword [esp + 0x38]
inc edi
cmp edi, eax
jl 0x4b80f4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret