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

Disassembly:
sub esp, 0x30
mov eax, dword [0x613ad0]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push esi
push eax
mov dword [esp + 0x24], 0
call fcn.004df880
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c42de
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005aac48
add esp, 0x30
ret 0x10
cmp dword [esi + 0x14], 0
je 0x4c42ca
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.004c0980
mov ebx, dword [esp + 0x2c]
add esp, 0xc
cmp dword [esi + 0x39b0], 0
jne 0x4c431a
mov edx, dword [esp + 0x2c]
push 0x50
push 0
push edx
push 0
push ebx
push esi
call fcn.004fa650
add esp, 0x18
cmp ebx, dword [esp + 0x2c]
push ebp
push edi
jg 0x4c47a2
mov ebp, dword [esp + 0x48]
lea eax, [ebx*4]
add ebx, 0xffffffff
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
lea esp, [esp]
mov edi, dword [esp + 0x1c]
add edi, 1
push edi
push esi
mov dword [esp + 0x30], edi
call fcn.004f5090
add esp, 8
test eax, eax
je 0x4c478a
cmp dword [esi + 0x39b0], 0
je 0x4c4396
mov ecx, dword [esi + 0x39a4]
mov edx, dword [esi + 0x3894]
imul ecx, ecx, 0x10c
lea eax, [ecx + edx]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x78]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x80]
mov eax, dword [eax + 0xb0]
jmp 0x4c43c2
mov edx, dword [esi + 0x138]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx + eax]
mov edx, dword [ecx + 0x14]
mov eax, dword [esi + 0x2b38]
imul edx, edx, 0x58
mov ecx, dword [eax + edx + 0x18]
add eax, edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x20]
test byte [esp + 0x30], 8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
je 0x4c478a
mov edx, dword [esi + 0x2b50]
mov ebx, eax
shl ebx, 4
sub ebx, eax
add ebx, ebx
add ebx, ebx
mov ecx, dword [ebx + edx + 0x2c]
test ecx, ecx
lea eax, [ebx + edx]
je 0x4c478a
mov edx, dword [esp + 0x2c]
test edx, edx
jne 0x4c46e6
xor edi, edi
cmp ebp, 0xffffffff
jne 0x4c440f
mov ebp, dword [eax + 0x30]
add ebp, dword [esp + 0x4c]
test ebp, ebp
jge 0x4c4417
xor ebp, ebp
jmp 0x4c4421
cmp ebp, 8
jle 0x4c4421
mov ebp, 8
push ebp
push ecx
push esi
call fcn.004c0620
add esp, 0xc
cmp dword [esp + 0x28], 0
mov dword [esp + 0x14], eax
jle 0x4c444d
push 0
push eax
mov eax, dword [esp + 0x24]
push ebp
push eax
push esi
call fcn.004c22d0
add esp, 0x14
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
add eax, 2
cmp eax, dword [esi + 0x5e4]
jge 0x4c4472
mov ecx, dword [esp + 0x14]
push 0
push ecx
push ebp
push eax
push esi
call fcn.004c22d0
add esp, 0x14
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0x2b50]
mov ebx, dword [ebx + edx + 0x2c]
mov eax, dword [esi + 0x2b68]
mov ecx, ebx
shl ecx, 4
sub ecx, ebx
cmp dword [eax + ecx*4 + 8], ebp
lea eax, [eax + ecx*4]
mov ecx, dword [eax + 4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], ecx
jle 0x4c44aa
mov edi, ebp
imul edi, edi, 0x84
add edi, dword [eax + 0xc]
jmp 0x4c44c7
mov eax, dword [esi + 0x2b5c]
lea edx, [ecx + ecx*8]
cmp dword [eax + edx*8 + 0x10], ebp
lea eax, [eax + edx*8]
jle 0x4c44c7
mov edi, ebp
imul edi, edi, 0x84
add edi, dword [eax + 0x1c]
cmp dword [esp + 0x28], 0
jle 0x4c44e9
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push edi
push ebp
push edx
push esi
call fcn.004c22d0
mov ebx, dword [esp + 0x24]
add esp, 0x14
mov edi, eax
mov eax, dword [esp + 0x1c]
add eax, 2
cmp eax, dword [esi + 0x5e4]
jge 0x4c450f
lea ecx, [esp + 0x10]
push ecx
push edi
push ebp
push eax
push esi
call fcn.004c22d0
mov ebx, dword [esp + 0x24]
add esp, 0x14
mov edi, eax
test edi, edi
je 0x4c4525
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x14]
cmp edx, dword [eax + 4]
je 0x4c45fc
xor edi, edi
xor eax, eax
cmp dword [esi + 0x2b6c], eax
jle 0x4c4594
mov ecx, dword [esi + 0x2b68]
add ecx, 8
jmp 0x4c4540
mov edx, dword [esp + 0x2c]
cmp dword [ecx - 4], edx
jne 0x4c4569
cmp dword [ecx], ebp
jle 0x4c4569
mov ebx, dword [ecx + 4]
mov edx, ebp
imul edx, edx, 0x84
mov edx, dword [ebx + edx + 4]
mov ebx, dword [esp + 0x14]
cmp edx, dword [ebx + 4]
je 0x4c4579
mov ebx, dword [esp + 0x10]
add eax, 1
add ecx, 0x3c
cmp eax, dword [esi + 0x2b6c]
jl 0x4c4540
jmp 0x4c4594
mov edi, ebp
imul edi, edi, 0x84
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov ebx, eax
mov eax, dword [esi + 0x2b68]
add edi, dword [eax + ecx*4 + 0xc]
test edi, edi
jne 0x4c45fc
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0x39c]
push edi
push 1
push edx
push edi
push edi
push 1
push eax
call fcn.004bfdf0
mov edx, dword [esi + 0x2b68]
mov ebx, eax
mov ecx, ebx
shl ecx, 4
sub ecx, ebx
cmp dword [edx + ecx*4 + 8], ebp
lea eax, [edx + ecx*4]
jle 0x4c47d5
mov edi, ebp
imul edi, edi, 0x84
add edi, dword [eax + 0xc]
mov eax, dword [esp + 0x14]
cmp dword [eax + 4], 0x17
jne 0x4c45f4
push 0x84
push edi
push eax
call fcn.004e29c0
add esp, 0xc
or dword [edi + 0x58], 0x11
test edi, edi
je 0x4c47d5
mov eax, dword [esi + 0x39c]
push ebp
push ebx
push eax
call fcn.004c3290
mov edx, dword [esp + 0x1c]
test edx, edx
mov dword [esp + 0x10], eax
jl 0x4c4662
mov ecx, dword [esi + 0x138]
mov eax, dword [esp + 0x24]
mov edi, dword [esi + 0x2b38]
lea ecx, [ecx + eax - 4]
lea ebx, [ebx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
imul eax, eax, 0x58
mov eax, dword [eax + edi + 0x20]
mov ebx, eax
shl ebx, 4
sub ebx, eax
mov eax, dword [esi + 0x2b50]
cmp dword [eax + ebx*4 + 0x2c], 0
lea eax, [eax + ebx*4]
je 0x4c4662
cmp dword [eax + 0x30], ebp
je 0x4c4676
sub edx, 1
sub ecx, 4
test edx, edx
jge 0x4c4630
mov eax, dword [esi + 0x388c]
cdq
sub eax, edx
sar eax, 1
jne 0x4c46a1
mov eax, 0x10e
jmp 0x4c46b9
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx + 0x14]
imul edx, edx, 0x58
mov ecx, dword [edx + edi + 0xc]
lea eax, [edx + edi]
mov edi, dword [eax + 0x14]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], edi
jmp 0x4c46fc
cmp eax, 0x10e
jge 0x4c46b9
jmp 0x4c46b0
add eax, eax
cmp eax, 0x10e
jl 0x4c46b0
imul eax, dword [esp + 0x4c]
add dword [esp + 0x18], eax
mov edi, dword [esp + 0x20]
jns 0x4c46d0
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], edi
jmp 0x4c46fc
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
mov edi, edx
cmp dword [esi + 0x39b0], 0
jne 0x4c47ef
mov eax, dword [esi + 0x138]
mov ebx, dword [esp + 0x24]
mov edx, dword [ebx + eax]
mov eax, dword [edx + 0x14]
mov edx, dword [esi + 0x2b38]
mov dword [esp + 0x20], eax
imul eax, eax, 0x58
add eax, edx
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [eax + 0x50]
push edx
mov edx, dword [eax + 0x48]
push edx
mov edx, dword [eax + 0x44]
push edx
mov edx, dword [eax + 0x4c]
push edx
mov edx, dword [eax + 0x38]
push edx
mov edx, dword [eax + 0x34]
push edx
mov edx, dword [eax + 0x30]
push edx
mov edx, dword [eax + 0x2c]
push edx
mov edx, dword [eax + 0x28]
push edx
mov edx, dword [eax + 0x24]
push edx
mov edx, dword [eax + 0x40]
push edx
mov edx, dword [eax + 0x3c]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x10]
push edx
push edi
push eax
push ecx
mov ecx, dword [esp + 0x68]
push ecx
push esi
call fcn.004c2d90
mov edx, dword [esi + 0x138]
mov ecx, dword [ebx + edx]
mov edi, dword [esp + 0x78]
add esp, 0x50
mov dword [ecx + 0x14], eax
add dword [esp + 0x24], 4
mov eax, edi
mov dword [esp + 0x1c], eax
add eax, 1
cmp eax, dword [esp + 0x34]
jle 0x4c4340
add dword [esi + 0x114], 1
cmp dword [esp + 0x50], 0
je 0x4c47d5
push 1
push esi
call fcn.00525730
push esi
call fcn.004de3e0
add esp, 0xc
cmp dword [esi + 0x4dc], 0
je 0x4c47d5
push 0
push esi
call fcn.005119e0
add esp, 8
mov ecx, dword [esp + 0x3c]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
mov eax, 1
call fcn.005aac48
add esp, 0x30
ret 0x10
mov edx, dword [esi + 0x39a4]
mov eax, dword [esi + 0x3894]
imul edx, edx, 0x10c
mov ebx, dword [esp + 0x30]
mov dword [edx + eax + 0x84], ebx
mov edx, dword [esi + 0x39a4]
mov eax, dword [esi + 0x3894]
imul edx, edx, 0x10c
mov dword [edx + eax + 0x78], ecx
mov ecx, dword [esi + 0x39a4]
mov edx, dword [esi + 0x3894]
imul ecx, ecx, 0x10c
mov dword [ecx + edx + 0x80], edi
mov eax, dword [esi + 0x39a4]
mov ecx, dword [esi + 0x3894]
imul eax, eax, 0x10c
mov edx, dword [esp + 0x10]
mov dword [eax + ecx + 0xb0], edx
jmp 0x4c47ca