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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
push esi
mov esi, ecx
mov dword [esp + 0x20], edx
xorps xmm0, xmm0
mov dword [esp + 0x14], esi
push edi
movaps xmmword [esp + 0x60], xmm0
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], ecx
movq qword [esp + 0x70], xmm0
test eax, eax
je 0x4f7cc5
xor edi, edi
cmp dword [eax], 0x40
cmovge eax, edi
mov dword [ebp + 0xc], eax
mov edx, dword [edx]
cmp edx, 0x40
jle 0x4f7ce4
push 0x40
push str.at_most__d_tables_in_a_join
push esi
call fcn.004633a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
test al, 0x20
mov dword [esp + 0x1c], eax
mov eax, 1
cmovne edx, eax
imul eax, edx, 0x58
push 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x5c], eax
add eax, 0x307
and eax, 0xfffffff8
mov dword [esp + 0x54], eax
add eax, 0x50
push eax
call fcn.004600a0
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], edi
cmp byte [eax + 0x57], 0
je 0x4f7d43
test edi, edi
je 0x4f817c
mov edx, edi
mov ecx, eax
call fcn.0045fcb0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [edi], esi
mov esi, dword [ebp + 8]
mov dword [edi + 0x10], esi
mov dword [edi + 0x1c], 0xffffffff
mov dword [edi + 0x18], 0xffffffff
mov byte [edi + 0x30], al
mov eax, dword [ecx + 0x38]
dec eax
mov dword [ecx + 0x38], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x1c]
mov word [edi + 0x2c], ax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x54], eax
mov word [edi + 0x2e], ax
mov eax, dword [ecx + 0x88]
push 0x27
mov dword [edi + 0x28], eax
lea eax, [edi + 0x31]
push 0
push eax
mov dword [edi + 0x14], edx
call fcn.00533fc0
mov eax, dword [esp + 0x64]
lea ecx, [edi + 0x300]
add esp, 0xc
mov dword [esp + 0x48], ecx
add eax, 0x50
push eax
push 0
push ecx
call fcn.00533fc0
mov ecx, dword [esp + 0x5c]
lea edx, [edi + 0x58]
mov dword [edi + 0x1fc], 0
add ecx, edi
mov dword [edi + 0x200], 0xffffff9d
add esp, 0xc
mov dword [esp + 0x4c], edx
mov dword [esp + 0x64], edx
lea eax, [ecx + 0x40]
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x38], eax
xor eax, eax
mov word [ecx + 0x30], ax
mov eax, 3
mov word [ecx + 0x34], ax
lea eax, [edx + 0x20]
mov dword [esp + 0x68], ecx
lea ecx, [edi + 0x58]
mov dword [edx], edi
mov byte [edx + 9], 0
mov dword [edx + 4], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x10], 8
mov dword [edx + 0x18], eax
mov edx, esi
push 0x2c
mov dword [esp + 0x64], edi
call fcn.004f02d0
add esp, 4
cmp dword [esp + 0x2c], 0
jne 0x4f7e97
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4f7e66
mov al, byte [eax]
mov byte [edi + 0x31], al
test dword [esp + 0x1c], 0x100
je 0x4f7e7e
mov eax, dword [esp + 0x20]
test byte [eax + 0x50], 0x10
jne 0x4f7e7e
mov byte [edi + 0x33], 1
push str.SCAN_CONSTANT_ROW
push 0
push dword [esp + 0x20]
call fcn.00484bf0
mov ecx, dword [esp + 0x30]
add esp, 0xc
jmp 0x4f7eec
mov esi, dword [esp + 0x24]
mov dword [esp + 0x50], 0
add esi, 8
nop word [eax + eax]
mov ecx, dword [edi + 0x1fc]
mov edx, esi
mov eax, dword [esi + 0x2c]
mov dword [edi + ecx*4 + 0x200], eax
lea eax, [edi + 0x58]
mov ecx, dword [esp + 0x18]
inc dword [edi + 0x1fc]
push eax
call fcn.004f0910
mov eax, dword [esp + 0x54]
add esp, 4
mov ecx, dword [esp + 0x24]
inc eax
add esi, 0x48
mov dword [esp + 0x50], eax
cmp eax, dword [ecx]
jl 0x4f7eb0
mov esi, dword [edi + 0x64]
lea edx, [edi + 0x58]
sub esi, 1
js 0x4f7f1c
mov edi, dword [esp + 0x4c]
nop dword [eax + eax]
push esi
mov edx, edi
call fcn.004eed10
mov ecx, dword [esp + 0x28]
add esp, 4
sub esi, 1
jns 0x4f7f00
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4f7ff0
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x58], eax
test eax, eax
je 0x4f7ff0
test byte [ecx + 4], 9
jne 0x4f7ff0
mov esi, dword [ecx + 0x20]
cmp dword [esi], 1
jne 0x4f7ff0
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x2b], 1
jne 0x4f7ff0
mov eax, dword [ecx + 0x30]
xor ecx, ecx
mov edx, dword [edx + 0xc]
mov esi, dword [esi + 0x34]
mov dword [esp + 0x50], eax
test edx, edx
jle 0x4f7f88
mov eax, dword [edi + 0x70]
add eax, 0x14
test byte [eax - 0xa], 4
jne 0x4f7f7c
cmp dword [eax], esi
jne 0x4f7ff0
inc ecx
add eax, 0x30
cmp ecx, edx
jl 0x4f7f72
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4f7fb3
xor edx, edx
cmp dword [eax], edx
jle 0x4f7fb3
add eax, 0x10
mov ecx, dword [eax - 8]
cmp byte [ecx], 0xa7
jne 0x4f7ff0
cmp dword [ecx + 0x1c], esi
jne 0x4f7ff0
test byte [eax], 2
jne 0x4f7ff0
mov ecx, dword [esp + 0x50]
inc edx
add eax, 0x14
cmp edx, dword [ecx]
jl 0x4f7f95
mov eax, dword [esp + 0x58]
lea ecx, [edi + 0x58]
mov edx, dword [ebp + 0x14]
push 0x49
push esi
push dword [eax + 0xc]
mov edx, dword [edx + 8]
call fcn.004f0340
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov edx, dword [eax + 0xc]
test edx, edx
jle 0x4f7ff0
mov eax, dword [eax + 0x3c]
push 0x4a
push esi
lea esi, [edi + 0x58]
push dword [eax + 0x10]
mov ecx, esi
call fcn.004f0340
add esp, 0xc
jmp 0x4f7ff3
lea esi, [edi + 0x58]
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x57], 0
jne 0x4f815d
cmp dword [esi + 0x14], 0
mov dword [esp + 0x50], 0
jle 0x4f80d7
xor ecx, ecx
mov dword [esp + 0x44], ecx
nop dword [eax]
mov esi, dword [esi + 0x18]
add esi, ecx
test byte [esi + 0xa], 2
jne 0x4f80b4
mov eax, dword [esi + 0x28]
or eax, dword [esi + 0x2c]
jne 0x4f80b4
cmp dword [esp + 0x2c], eax
je 0x4f8098
mov edx, dword [esi]
xorps xmm0, xmm0
mov dword [esp + 0x98], eax
mov eax, 1
movaps xmmword [esp + 0x80], xmm0
movq qword [esp + 0x90], xmm0
mov word [esp + 0x94], ax
mov dword [esp + 0x84], 0x4f7940
mov dword [esp + 0x88], 0x49dac0
test edx, edx
je 0x4f8098
lea ecx, [esp + 0x80]
call fcn.00497e80
cmp word [esp + 0x94], 0
je 0x4f80b0
push 0x10
push dword [edi + 0x24]
push dword [esi]
push dword [esp + 0x24]
call fcn.004a4220
add esp, 0x10
or word [esi + 0xa], 4
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x50]
add ecx, 0x30
inc esi
mov dword [esp + 0x44], ecx
cmp esi, dword [edi + 0x6c]
mov dword [esp + 0x50], esi
lea esi, [edi + 0x58]
jl 0x4f8020
mov eax, dword [esp + 0x20]
lea esi, [edi + 0x58]
mov ecx, dword [esp + 0x1c]
test ecx, 0x100
je 0x4f8100
test byte [eax + 0x50], 0x10
je 0x4f8184
and ecx, 0xfeff
mov eax, 0xfeff
and word [edi + 0x2c], ax
mov dword [esp + 0x1c], ecx
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x2c], 1
jne 0x4f811c
lea ecx, [esp + 0x60]
call fcn.004f7710
test eax, eax
jne 0x4f81c5
lea ecx, [esp + 0x60]
call fcn.004f5f20
test eax, eax
jne 0x4f815d
xor edx, edx
mov ecx, edi
call fcn.004f6bc0
mov ecx, dword [esp + 0x20]
cmp byte [ecx + 0x57], 0
jne 0x4f815d
cmp dword [edi + 8], 0
je 0x4f81cf
movzx edx, word [edi + 0x38]
mov ecx, edi
inc dx
call fcn.004f6bc0
mov ecx, dword [esp + 0x20]
cmp byte [ecx + 0x57], 0
je 0x4f81c9
mov ecx, edi
call fcn.004f31e0
mov ecx, dword [esp + 0x18]
mov edx, edi
mov eax, dword [edi + 0x28]
mov dword [ecx + 0x88], eax
mov ecx, dword [esp + 0x20]
call fcn.004f3080
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
mov edx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.004f11a0
add esp, 8
test eax, eax
je 0x4f81a7
mov byte [edi + 0x33], 1
jmp 0x4f8104
cmp dword [ebp + 0xc], 0
jne 0x4f8104
mov eax, 0x80
or word [edi + 0x2c], ax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
jmp 0x4f8104
mov ecx, dword [esp + 0x20]
cmp dword [edi + 8], 0
jne 0x4f81ea
mov eax, dword [ecx + 0x20]
and eax, 0x1000
or eax, 0
je 0x4f81ea
mov dword [edi + 0x50], 0xffffffff
mov dword [edi + 0x54], 0xffffffff
cmp dword [esi + 0x24], 0
jne 0x4f815d
mov al, byte [edi + 0x30]
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x44], 0xffffffff
cmp al, 2
jb 0x4f8261
cmp dword [ebp + 0x10], 0
je 0x4f824d
mov eax, dword [esp + 0x1c]
xor edx, edx
and eax, 0x400
cmp dx, ax
jne 0x4f824d
test dword [ecx + 0x50], 0x100
jne 0x4f824d
sub esp, 8
mov ecx, edi
call fcn.004f7970
mov dword [esp + 0x48], eax
add esp, 8
mov al, byte [edi + 0x30]
movzx ecx, al
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], ecx
cmp al, 2
jb 0x4f8261
mov eax, dword [esp + 0x20]
test dword [eax + 0x50], 0x80000
jne 0x4f8261
mov ecx, edi
call fcn.004f7be0
mov ecx, dword [edi]
movsx eax, word [edi + 0x38]
mov dword [esp + 0x30], 0
add dword [ecx + 0x88], eax
mov eax, dword [esp + 0x1c]
test al, 4
je 0x4f830d
mov edx, dword [edi + 0x34c]
mov ecx, dword [edx + 0x2c]
test ecx, 0x1000
jne 0x4f82ca
mov dword [esp + 0x30], 0
test al, 8
je 0x4f830d
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], 0
mov eax, dword [eax + 0x18]
cmp byte [eax + 0x2b], 1
je 0x4f830d
test ecx, 0x2000
je 0x4f82ca
test byte [esp + 0x1c], 0x10
mov dword [esp + 0x30], 0
je 0x4f830d
mov eax, ecx
mov dword [esp + 0x30], 0
and eax, 0x1000
neg eax
sbb al, al
add al, 2
mov byte [edi + 0x32], al
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x18]
test byte [eax + 0x1c], 0x80
jne 0x4f830d
mov dword [esp + 0x30], 0
test cl, 0x40
je 0x4f830d
mov eax, dword [esp + 0x1c]
and ecx, 0xffffffbf
and eax, 8
mov dword [edx + 0x2c], ecx
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jle 0x4f87c3
mov eax, dword [esp + 0x48]
add eax, 0x4c
mov dword [esp + 0x58], ecx
mov dword [esp + 0x38], eax
jmp 0x4f8334
mov esi, dword [esp + 0x18]
movzx eax, byte [eax - 0x14]
mov edi, 0xffff8000
mov ecx, dword [esp + 0x24]
lea eax, [eax + eax*8]
mov edx, dword [ecx + eax*8 + 0x18]
lea eax, [ecx + eax*8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], edx
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x4f8378
mov eax, dword [esp + 0x20]
xor edi, edi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x4f8378
nop word [eax + eax]
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x4f8370
test dword [edx + 0x1c], 0x4000
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
jne 0x4f8599
mov al, byte [edx + 0x2b]
cmp al, 2
je 0x4f8599
mov ecx, dword [ecx + 0x2c]
test ecx, 0x400
je 0x4f848c
mov esi, dword [edx + 0x34]
mov dword [esp + 0x4c], esi
test esi, esi
je 0x4f83c7
mov eax, dword [esp + 0x20]
cmp dword [esi], eax
je 0x4f83c3
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x4f83b8
mov dword [esp + 0x4c], esi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov edx, dword [ecx + 0x74]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x5c], eax
cmp dword [ecx + 0x78], edx
jg 0x4f83f4
push 0
push 0
push eax
mov edx, 0xac
call fcn.004845f0
add esp, 0xc
mov edx, eax
jmp 0x4f842f
mov esi, dword [esp + 0x5c]
lea eax, [edx + 1]
mov dword [ecx + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x70]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x4c]
mov dword [eax + ecx*4], 0xac
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
cmp byte [eax + 0x57], 0
jne 0x4f85ce
test edx, edx
jns 0x4f8447
mov edx, dword [ecx + 0x74]
dec edx
mov eax, dword [esp + 0x14]
lea ecx, [edx + edx*4]
mov eax, dword [eax + 0x70]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x14]
je 0x4f8471
push 0xfffffffffffffff4
push esi
mov edx, eax
call fcn.00485350
add esp, 8
jmp 0x4f85ca
mov edx, dword [esp + 0x28]
test esi, esi
je 0x4f85d2
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xf4
inc dword [esi + 0xc]
jmp 0x4f85d2
cmp al, 1
je 0x4f8599
test cl, 0x40
jne 0x4f859f
test byte [esp + 0x1c], 0x20
jne 0x4f859f
mov esi, dword [esp + 0x3c]
mov ecx, 0x65
cmp byte [esi + 0x32], 0
je 0x4f84c6
mov eax, dword [esp + 0x34]
mov ecx, 0x70
mov eax, dword [eax + 0x34]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [eax + 0x34]
push edi
call fcn.004c1410
mov edx, dword [esp + 0x34]
add esp, 0xc
cmp byte [esi + 0x32], 0
jne 0x4f857b
cmp word [edx + 0x22], 0x40
jge 0x4f857b
test byte [edx + 0x1c], 0xe0
jne 0x4f857b
mov eax, dword [esp + 0x50]
test dword [eax + 0x2c], 0x404000
jne 0x4f857b
mov eax, dword [esp + 0x34]
xor esi, esi
mov edx, dword [eax + 0x40]
mov ecx, edx
mov eax, dword [eax + 0x44]
or ecx, eax
je 0x4f852d
nop
shrd edx, eax, 1
inc esi
shr eax, 1
mov ecx, edx
or ecx, eax
jne 0x4f8520
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
cmp byte [ecx + 0x57], 0
je 0x4f8549
push esi
mov edx, 0xfffffffd
call fcn.00485100
add esp, 4
jmp 0x4f8577
mov eax, dword [edx + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x70]
cmp byte [eax + ecx*4 - 0x13], 0
lea eax, [eax + ecx*4]
je 0x4f8570
mov ecx, dword [esp + 0x14]
lea edx, [eax - 0x14]
push 0xfffffffffffffffd
push esi
call fcn.00485350
add esp, 8
jmp 0x4f8577
mov dword [eax - 4], esi
mov byte [eax - 0x13], 0xfd
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x74]
test eax, eax
jle 0x4f85d2
mov esi, dword [esp + 0x30]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x70]
mov word [eax + ecx*4 - 0x12], si
mov ecx, dword [esp + 0x14]
jmp 0x4f85d2
cmp edi, 1
je 0x4f8599
mov eax, dword [esi]
mov ecx, edi
add ecx, ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 4]
cmp byte [eax + 9], 0
je 0x4f8599
push dword [edx]
mov ecx, esi
push 0
push dword [edx + 0x14]
mov edx, edi
call fcn.004acf50
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x50]
test dword [eax + 0x2c], 0x200
je 0x4f8771
test byte [edx + 0x1c], 0x80
mov eax, dword [eax + 0x20]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], 0x65
je 0x4f8618
mov eax, dword [eax + 0x38]
and al, 3
cmp al, 2
mov eax, dword [esp + 0x1c]
jne 0x4f861c
test al, 0x20
je 0x4f861c
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 0x48]
mov dword [ecx - 0x44], eax
jmp 0x4f8771
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x54]
cmp byte [esi + 0x32], 0
je 0x4f8653
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x4f8646
cmp eax, dword [esp + 0x4c]
je 0x4f8646
mov eax, dword [eax + 0x14]
inc edx
test eax, eax
jne 0x4f8638
mov dword [esp + 0x28], 0x70
mov dword [esi + 0x1c], edx
jmp 0x4f8676
test edx, edx
je 0x4f8665
test al, 0x20
je 0x4f8665
mov dword [esp + 0x28], 0x64
jmp 0x4f8676
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x18]
mov edx, dword [eax + 0x28]
lea eax, [edx + 1]
mov dword [esi + 0x28], eax
mov esi, dword [esp + 0x38]
mov eax, edx
mov dword [esi - 0x44], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x74]
mov dword [esp + 0x5c], eax
cmp dword [ecx + 0x78], eax
jg 0x4f86aa
push edi
push dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x34]
call fcn.004845f0
add esp, 0xc
jmp 0x4f86e6
inc eax
mov dword [ecx + 0x74], eax
mov eax, dword [esp + 0x5c]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x28]
mov byte [eax + 1], 0
mov byte [eax], cl
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x4c]
mov eax, dword [ecx + 8]
mov dword [esp + 0x5c], eax
call fcn.004b6e90
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
test eax, eax
je 0x4f8738
mov edx, dword [esp + 0x5c]
mov ecx, dword [edx]
cmp byte [ecx + 0x57], 0
je 0x4f8722
push eax
mov edx, 0xfffffff7
call fcn.00485100
add esp, 4
jmp 0x4f8738
mov eax, dword [edx + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x70]
mov edx, dword [esp + 0x4c]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x2c]
test al, 0xf
je 0x4f8771
test eax, 0x188002
jne 0x4f8771
test byte [esi + 0x2c], 1
jne 0x4f8771
cmp byte [esi + 0x33], 2
je 0x4f8771
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x74]
test ecx, ecx
jle 0x4f8771
mov eax, dword [eax + 0x70]
lea ecx, [ecx + ecx*4]
mov edx, 2
mov word [eax + ecx*4 - 0x12], dx
test edi, edi
js 0x4f87a5
mov ecx, dword [esp + 0x18]
mov edx, ecx
mov eax, dword [ecx + 0x74]
test eax, eax
mov ecx, edi
cmovne edx, eax
mov eax, 1
shl eax, cl
mov esi, dword [edx + 0x54]
test esi, eax
jne 0x4f87a5
bts esi, edi
mov dword [edx + 0x54], esi
cmp edi, 1
jne 0x4f87a5
mov ecx, edx
call fcn.004b6500
mov eax, dword [esp + 0x38]
add eax, 0x58
sub dword [esp + 0x58], 1
mov dword [esp + 0x38], eax
jne 0x4f8330
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x74]
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x57], 0
jne 0x4f815d
xor esi, esi
test ecx, ecx
jle 0x4f88be
lea edx, [edi + 0x300]
nop dword [eax + eax]
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x24], 0
jne 0x4f815d
mov eax, dword [edx + 0x4c]
mov eax, dword [eax + 0x2c]
test eax, 0x404000
je 0x4f8865
test eax, 0x4000
je 0x4f883a
movzx eax, byte [edx + 0x38]
push edx
mov edx, dword [esp + 0x28]
push dword [esp + 0x48]
lea eax, [eax + eax*8]
push dword [esp + 0x48]
lea eax, [eax + 1]
lea eax, [edx + eax*8]
push eax
lea edx, [edi + 0x58]
call fcn.004f1540
add esp, 0x10
jmp 0x4f884f
push dword [esp + 0x44]
mov ecx, edi
push dword [esp + 0x44]
push edx
mov edx, esi
call fcn.004f2370
add esp, 0xc
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x57], 0
jne 0x4f815d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
push dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x2c]
call fcn.004e8760
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
push dword [esp + 0x4c]
mov eax, dword [ecx + 0x74]
push edx
mov dword [edx + 0x20], eax
mov edx, ecx
mov ecx, dword [esp + 0x2c]
push esi
push edi
call fcn.004ea4e0
mov dword [esp + 0x60], edx
inc esi
mov edx, dword [esp + 0x64]
add esp, 0x1c
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x18]
add edx, 0x58
mov dword [edi + 0x20], eax
mov dword [esp + 0x48], edx
cmp esi, dword [esp + 0x2c]
jl 0x4f87f0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x74]
mov dword [edi + 0x40], eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret