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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x5932e0]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, ecx
mov byte [esp + 3], 0
push ebx
mov dword [esp + 0x10], eax
xor ecx, ecx
push esi
mov ebx, dword [eax + 8]
mov esi, edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x5c], ecx
push edi
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x88]
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x64], ecx
cmp dword [eax + 0x30], ecx
jg 0x4c56e4
push 0
push 0
push 0
mov edx, 0x14
mov ecx, ebx
call fcn.004784f0
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x64], eax
jmp 0x4c571a
lea eax, [ecx + 1]
mov dword [ebx + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x58]
mov dword [eax + ecx*4], 0x14
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edx + 0x10]
xor ecx, ecx
mov esi, dword [esi + 0x14]
xorps xmm0, xmm0
mov edi, dword [edi + 0x40]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x40], edi
movlpd qword [esp + 0x28], xmm0
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*2]
shl eax, 4
add eax, esi
mov dword [esp + 0x48], eax
cmp esi, eax
jae 0x4c5926
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x40]
mov edi, dword [esi]
mov eax, dword [eax]
or eax, dword [ebx + 4]
mov ebx, dword [esp + 0x30]
jne 0x4c57e3
test byte [esi + 0xa], 2
jne 0x4c57e3
test byte [edi + 4], 1
jne 0x4c57e3
mov eax, dword [edx + 0x30]
lea ecx, [esp + 0x68]
mov edx, edi
mov byte [esp + 0x7c], 3
mov dword [esp + 0x6c], fcn.0048f260
mov dword [esp + 0x70], 0x48f200
mov dword [esp + 0x80], eax
call fcn.0048ab90
cmp byte [esp + 0x7c], 0
je 0x4c57db
mov edx, edi
mov edi, dword [esp + 0x18]
push 0
push 0
mov ecx, dword [edi]
call fcn.0048e300
mov edx, dword [esp + 0x58]
mov ecx, dword [edi]
push eax
call fcn.0048ddb0
add esp, 0xc
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x14]
cmp eax, dword [edx + 0x30]
jne 0x4c590f
movzx ecx, word [esi + 0xc]
test cl, 0x82
je 0x4c590b
test byte [edx + 0x24], 8
je 0x4c5812
mov eax, dword [esi]
test byte [eax + 4], 1
jne 0x4c5812
test cl, cl
js 0x4c590b
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
and ecx, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
or ecx, eax
jne 0x4c590b
mov ecx, dword [esi + 0x1c]
test ecx, ecx
js 0x4c590b
mov eax, dword [edx + 0x10]
add ecx, ecx
mov eax, dword [eax + 4]
mov dl, byte [eax + ecx*8 + 0xd]
mov ecx, dword [esi]
call fcn.0048d1d0
test eax, eax
je 0x4c5907
mov edx, dword [esi + 0x1c]
xor edi, edi
cmp edx, 0x40
jl 0x4c5860
mov dword [esp + 0x38], 0x80000000
jmp 0x4c5879
mov eax, edx
xor ecx, ecx
bts edi, eax
cmp eax, 0x20
cmovae ecx, edi
xor edi, ecx
cmp eax, 0x40
cmovae ecx, edi
mov dword [esp + 0x38], ecx
cmp byte [esp + 0xf], 0
jne 0x4c58a5
mov ecx, dword [esp + 0x54]
add edx, edx
mov eax, dword [ecx + 4]
push dword [eax + edx*8]
push dword [ecx]
push str.automatic_index_on__s__s_
push 0x11c
call fcn.0045b900
add esp, 0x10
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x38]
mov ecx, edi
and ecx, dword [esp + 0x3c]
and eax, dword [esp + 0x1c]
or ecx, eax
jne 0x4c5907
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
inc eax
mov dword [esp + 0x14], eax
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
call fcn.004c6580
add esp, 4
test eax, eax
jne 0x4c61f2
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
or dword [esp + 0x3c], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [eax + 0x30]
or edi, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [eax + ecx*4], esi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
jmp 0x4c5913
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
add esi, 0x30
cmp esi, dword [esp + 0x48]
jb 0x4c5765
mov esi, dword [esp + 0x3c]
jmp 0x4c592e
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
movzx eax, cx
not esi
mov ecx, dword [esp + 0x40]
not edi
or edi, 0x80000000
mov word [ecx + 0x28], ax
mov word [ecx + 0x18], ax
mov dword [ecx + 0x24], 0x4241
mov ecx, dword [edx + 0x40]
and esi, ecx
and edi, dword [edx + 0x44]
mov edx, 0x3f
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], ecx
movzx edi, word [esi + 0x2a]
mov dword [esp + 0x14], edi
movzx eax, di
cmp dx, di
jge 0x4c5981
mov dword [esp + 0x38], edx
jmp 0x4c598f
movsx edx, di
mov dword [esp + 0x38], edx
xor edx, edx
cmp dx, ax
jge 0x4c59da
mov ebx, dword [esp + 0x38]
xor esi, esi
mov edi, dword [esp + 0x1c]
nop dword [eax]
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x3c]
and ecx, edi
or edx, ecx
je 0x4c59c5
inc dword [esp + 0x10]
inc esi
cmp esi, ebx
jl 0x4c59a0
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x44], 0
jg 0x4c59fa
jl 0x4c59ea
test ecx, ecx
jae 0x4c59fa
mov ecx, dword [esp + 0x10]
movsx eax, di
add ecx, 0xffffffc1
add ecx, eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x28]
mov edi, dword [esp + 0x18]
push eax
push 0
lea edx, [edx + 1]
mov ecx, dword [edi]
call fcn.0049c450
add esp, 8
mov dword [esp + 0x34], eax
test eax, eax
je 0x4c61f6
mov ecx, dword [esp + 0x40]
xor edi, edi
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov dword [ecx + 0x20], eax
mov dword [eax], str.auto_index
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x24]
mov esi, dword [eax + 0x14]
cmp esi, dword [esp + 0x48]
jae 0x4c5b9b
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x5c], eax
nop word [eax + eax]
mov eax, dword [esi + 0x14]
cmp eax, dword [edx + 0x30]
jne 0x4c5b8a
movzx ecx, word [esi + 0xc]
test cl, 0x82
je 0x4c5b8a
test byte [edx + 0x24], 8
je 0x4c5a9f
mov eax, dword [esi]
test byte [eax + 4], 1
jne 0x4c5a9f
test cl, cl
js 0x4c5b8a
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
and ecx, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
or ecx, eax
jne 0x4c5b8a
mov ecx, dword [esi + 0x1c]
test ecx, ecx
js 0x4c5b8a
mov eax, dword [edx + 0x10]
add ecx, ecx
mov eax, dword [eax + 4]
mov dl, byte [eax + ecx*8 + 0xd]
mov ecx, dword [esi]
call fcn.0048d1d0
test eax, eax
je 0x4c5b86
mov eax, dword [esi + 0x1c]
xor edx, edx
mov dword [esp + 0x28], eax
cmp eax, 0x40
jl 0x4c5af2
mov eax, 0x80000000
mov dword [esp + 0x44], eax
jmp 0x4c5b0b
bts edx, eax
xor ecx, ecx
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
mov dword [esp + 0x44], ecx
mov eax, ecx
and eax, dword [esp + 0x14]
mov ecx, edx
and ecx, dword [esp + 0x5c]
or ecx, eax
jne 0x4c5b86
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x44]
mov ecx, dword [esi]
or dword [esp + 0x5c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
mov word [eax + edi*2], dx
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x28], eax
test dword [edx + 4], 0x100
jne 0x4c5b6b
test eax, eax
je 0x4c5b5a
test dword [eax + 4], 0x100
je 0x4c5b5a
mov edx, eax
jmp 0x4c5b6b
mov ecx, dword [esp + 0x18]
call fcn.0048d030
test eax, eax
jne 0x4c5b7d
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
call fcn.0048d030
mov ecx, 0x574374
test eax, eax
je 0x4c5b7f
mov ecx, dword [eax]
mov eax, dword [ebx + 0x20]
mov dword [eax + edi*4], ecx
inc edi
mov edx, dword [esp + 0x20]
add esi, 0x30
cmp esi, dword [esp + 0x48]
jb 0x4c5a70
mov ebx, dword [esp + 0x30]
xor esi, esi
cmp dword [esp + 0x38], esi
jle 0x4c5be7
mov ebx, dword [esp + 0x34]
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x3c]
and ecx, dword [esp + 0x1c]
or edx, ecx
je 0x4c5bdc
mov eax, dword [ebx + 4]
mov word [eax + edi*2], si
mov eax, dword [ebx + 0x20]
mov dword [eax + edi*4], 0x574374
inc edi
inc esi
cmp esi, dword [esp + 0x38]
jl 0x4c5ba7
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x44], 0
jg 0x4c5c2d
jl 0x4c5bf9
cmp dword [eax + 0x40], 0
jae 0x4c5c2d
mov esi, dword [esp + 0x54]
mov eax, 0x3f
mov edx, dword [esp + 0x34]
cmp ax, word [esi + 0x2a]
jge 0x4c5c31
mov ecx, eax
nop
mov eax, dword [edx + 4]
mov word [eax + edi*2], cx
inc ecx
mov eax, dword [edx + 0x20]
mov dword [eax + edi*4], 0x574374
inc edi
movsx eax, word [esi + 0x2a]
cmp ecx, eax
jl 0x4c5c10
jmp 0x4c5c31
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
or ecx, 0xffffffff
mov esi, dword [esp + 0x4c]
mov word [eax + edi*2], cx
mov eax, dword [edx + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc edx
mov dword [eax + edi*4], 0x574374
mov eax, dword [ecx + 0x28]
mov dword [esi + 8], eax
inc dword [ecx + 0x28]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x88]
mov esi, dword [esi + 8]
cmp dword [eax + 0x30], ecx
jg 0x4c5c81
push 0
push edx
push esi
mov edx, 0x6d
mov ecx, ebx
call fcn.004784f0
add esp, 0xc
jmp 0x4c5cb3
lea eax, [ecx + 1]
mov dword [ebx + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x58]
mov ebx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x6d
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
mov ecx, eax
mov edx, dword [esp + 0x34]
mov esi, dword [eax + 8]
call fcn.0049e7d0
mov edx, eax
test edx, edx
je 0x4c5cf8
mov ecx, dword [esi]
cmp byte [ecx + 0x49], 0
je 0x4c5ce3
push edx
mov edx, 0xfffffff7
call fcn.00479010
add esp, 4
jmp 0x4c5cf8
mov eax, dword [esi + 0x88]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x4c]
inc dword [eax + 0x3c]
movzx eax, byte [edx + 0x2c]
lea esi, [eax + eax*4]
mov eax, dword [esp + 0x24]
shl esi, 4
mov eax, dword [eax]
mov eax, dword [eax + 4]
add esi, eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x48], esi
test byte [esi + 0x30], 0x10
je 0x4c5e2e
mov ecx, dword [ebx + 0x88]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x60], ecx
cmp dword [eax + 0x30], ecx
jg 0x4c5d5e
push 0
push 0
push 0
mov edx, 0x43
mov ecx, ebx
call fcn.004784f0
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x60], eax
jmp 0x4c5d94
lea eax, [ecx + 1]
mov dword [ebx + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x58]
mov dword [eax + ecx*4], 0x43
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x88]
mov esi, dword [esi + 0x20]
cmp dword [eax + 0x30], ecx
jg 0x4c5dbe
push esi
push 0
push edx
mov edx, 0xf
mov ecx, ebx
call fcn.004784f0
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x4c5df0
lea eax, [ecx + 1]
mov dword [ebx + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x58]
mov ebx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0xf
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 0x88]
cmp dword [eax + 0x30], esi
jg 0x4c5e16
push 0
push 0
push edx
mov edx, 0x10
mov ecx, ebx
call fcn.004784f0
add esp, 0xc
mov esi, eax
jmp 0x4c5e8a
lea eax, [esi + 1]
mov dword [ebx + 0x88], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x58]
mov dword [eax + ecx*4], 0x10
jmp 0x4c5e6a
mov esi, dword [ebx + 0x88]
mov edx, dword [edx + 4]
cmp dword [eax + 0x30], esi
jg 0x4c5e54
push 0
push 0
push edx
mov edx, 0x25
mov ecx, ebx
call fcn.004784f0
add esp, 0xc
mov esi, eax
jmp 0x4c5e8a
lea eax, [esi + 1]
mov dword [ebx + 0x88], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x58]
mov dword [eax + ecx*4], 0x25
mov ebx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 4], edx
cmp dword [esp + 0x50], 0
je 0x4c5f00
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x28], ecx
mov edx, dword [ecx + 0x44]
mov dword [esp + 0x58], edx
lea eax, [edx + 1]
mov dword [ecx + 0x44], eax
lea eax, [edx - 1]
test edx, eax
jne 0x4c5ece
lea eax, [edx*8 + 4]
mov edx, dword [ecx + 0x48]
mov ecx, dword [ecx]
push 0
push eax
call fcn.00459770
mov ecx, dword [esp + 0x30]
add esp, 8
mov edx, dword [esp + 0x58]
mov dword [ecx + 0x48], eax
mov eax, dword [ecx + 0x48]
test eax, eax
je 0x4c5edc
mov dword [eax + edx*4], 0xffffffff
not edx
push 0x10
push edx
push dword [esp + 0x58]
mov dword [esp + 0x64], edx
push dword [esp + 0x24]
call fcn.00493c70
mov eax, dword [esp + 0x50]
add esp, 0x10
or dword [eax + 0x24], 0x20000
mov ecx, dword [esp + 0x18]
mov al, byte [ecx + 0x13]
test al, al
jne 0x4c5f13
inc dword [ecx + 0x2c]
mov eax, dword [ecx + 0x2c]
jmp 0x4c5f22
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov eax, dword [ecx + eax*4 + 0x15c]
mov edx, dword [esp + 0x34]
push 0
push 0
push 0
push 0
push eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x60]
push dword [eax + 4]
call fcn.004a0750
mov ecx, dword [ebx + 0xc]
add esp, 0x18
mov edx, dword [ebx + 0x88]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 8]
mov dword [esp + 0x28], eax
cmp dword [ecx + 0x30], edx
jg 0x4c5f78
mov edx, dword [esp + 0x24]
mov ecx, ebx
push 0
push edx
push eax
mov edx, 0x81
call fcn.004784f0
add esp, 0xc
jmp 0x4c5fae
lea eax, [edx + 1]
mov dword [ebx + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x58]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x81
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x88]
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x4c5fd6
mov eax, dword [ebx + 0x58]
lea ecx, [ecx + ecx*4]
mov edx, 0x10
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [ebx + 0x88]
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x50], 0
mov edx, ecx
je 0x4c600f
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x14], eax
mov eax, ecx
cmp dword [esp + 0x14], 0
je 0x4c6013
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x14]
lea eax, [eax*4 + 4]
sub edx, eax
mov dword [edx], ecx
mov edx, dword [ebx + 0x88]
mov eax, edx
jmp 0x4c6013
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
test byte [ecx + 0x30], 0x10
je 0x4c60cf
lea ecx, [eax - 1]
mov eax, dword [esp + 0x60]
test eax, eax
cmovns ecx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x49], 0
je 0x4c603c
mov ecx, 0x59f36c
jmp 0x4c6045
mov eax, dword [ebx + 0x58]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x44]
mov edx, esi
add eax, edi
mov edi, dword [esp + 0x48]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
push 1
push dword [edi + 0x28]
push dword [eax + 4]
call fcn.004c55b0
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov ecx, dword [ebx + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x4c6097
push 0
push esi
push 0
mov edx, 0xd
mov ecx, ebx
call fcn.004784f0
add esp, 0xc
and dword [edi + 0x30], 0xffffffef
jmp 0x4c612c
lea eax, [ecx + 1]
mov dword [ebx + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
and dword [edi + 0x30], 0xffffffef
jmp 0x4c612c
mov eax, dword [esp + 0x4c]
lea edi, [esi + 1]
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x28], ecx
cmp dword [eax + 0x30], edx
jg 0x4c60fa
push 0
push edi
push ecx
mov edx, 7
mov ecx, ebx
call fcn.004784f0
add esp, 0xc
jmp 0x4c612c
lea eax, [edx + 1]
mov dword [ebx + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x58]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 7
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x88]
test edx, edx
jle 0x4c614c
mov eax, dword [ebx + 0x58]
lea ecx, [edx + edx*4]
mov edx, 3
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [ebx + 0x88]
mov eax, dword [ebx]
cmp byte [eax + 0x49], 0
je 0x4c615b
mov eax, 0x59f36c
jmp 0x4c616c
test esi, esi
lea eax, [edx - 1]
cmovns eax, esi
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + ecx*4]
mov edi, dword [esp + 0x18]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4c61b2
mov al, byte [edi + 0x13]
mov byte [esp + 0xf], al
cmp al, 8
jae 0x4c61b2
movzx esi, byte [edi + 0x19]
lea eax, [edi + 0x94]
xor ecx, ecx
test esi, esi
je 0x4c61a3
cmp dword [eax + 0xc], edx
je 0x4c61d1
inc ecx
add eax, 0x14
cmp ecx, esi
jl 0x4c6196
movzx eax, byte [esp + 0xf]
mov dword [edi + eax*4 + 0x15c], edx
inc byte [edi + 0x13]
mov ecx, edi
call fcn.00491d50
mov eax, dword [ebx]
mov edx, dword [ebx + 0x88]
cmp byte [eax + 0x49], 0
je 0x4c61d7
mov eax, 0x59f36c
mov dword [eax + 8], edx
jmp 0x4c61f6
mov byte [eax + 6], 1
jmp 0x4c61b2
mov ecx, dword [esp + 0x64]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x4c61f6
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4c6207
mov ecx, dword [edi]
mov edx, eax
call fcn.0048e120
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret