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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1b8]
mov eax, dword [eax]
test byte [eax + 0x40], 1
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], eax
je 0x4c8a90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov edi, dword [esi + 0x1c]
mov ebx, dword [ebp + 0x14]
lea eax, [eax + eax*4]
shl eax, 4
mov edx, dword [eax + edi + 0x38]
mov dword [esp + 0x1c], eax
lea eax, [eax + edi + 0x1c]
mov dword [esp + 0x3c], edx
mov edx, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edx
test ebx, ebx
je 0x4c8afd
cmp dword [ebp + 0x10], 0
jne 0x4c8a87
cmp dword [edi], 1
jg 0x4c8a87
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4c8adc
test dword [eax + 4], 0x200000
jne 0x4c8a87
mov ecx, dword [esi]
call fcn.004a30f0
test eax, 0x200000
jne 0x4c8a87
mov ecx, dword [esi + 0x2c]
call fcn.004a30f0
test eax, 0x200000
jne 0x4c8a87
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x38]
mov ecx, dword [edx + 0x1c]
test eax, eax
je 0x4c8b11
cmp dword [esi + 0x38], 0
jne 0x4c8a87
cmp dword [edx + 0x3c], 0
jne 0x4c8a87
mov edx, dword [esi + 8]
test edx, 0x100
je 0x4c8b2e
test eax, eax
jne 0x4c8a87
mov ecx, dword [ecx]
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x4c8a87
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
test cl, 1
jne 0x4c8a87
test eax, eax
je 0x4c8b63
cmp dword [edi], 1
jg 0x4c8a87
cmp dword [ebp + 0x10], 0
jne 0x4c8a87
mov edi, edx
and edi, 1
je 0x4c8b72
test ebx, ebx
jne 0x4c8a87
cmp dword [esi + 0x2c], 0
mov ebx, dword [esp + 0x10]
je 0x4c8b86
cmp dword [ebx + 0x2c], 0
jne 0x4c8a87
cmp dword [ebp + 0x10], 0
je 0x4c8b96
cmp dword [ebx + 0x2c], 0
jne 0x4c8a87
test eax, eax
je 0x4c8bb0
cmp dword [esi + 0x20], 0
jne 0x4c8a87
test eax, eax
je 0x4c8bb0
test edi, edi
jne 0x4c8a87
test ecx, 0x3000
jne 0x4c8a87
test edx, 0x2000
je 0x4c8bce
cmp dword [ebx + 0x30], 0
jne 0x4c8a87
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
test byte [edx + ecx + 0x2c], 0x20
lea eax, [edx + ecx + 0x2c]
mov dword [esp + 0x38], eax
je 0x4c8c12
mov eax, 1
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x30], eax
jg 0x4c8a87
cmp dword [ebp + 0x10], 0
jne 0x4c8a87
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x38], 0
jne 0x4c8a87
cmp dword [ebx + 0x30], 0
je 0x4c8c95
cmp dword [ebx + 0x2c], 0
jne 0x4c8a87
cmp dword [ebp + 0x10], 0
jne 0x4c8a87
test edi, edi
jne 0x4c8a87
cmp dword [ecx], 1
jne 0x4c8a87
mov eax, ebx
mov dl, 9
test byte [eax + 8], dl
jne 0x4c8a87
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x4c8c5b
cmp byte [eax + 4], 0x74
jne 0x4c8a87
mov eax, dword [eax + 0x1c]
cmp dword [eax], 1
jl 0x4c8a87
mov eax, ecx
test eax, eax
jne 0x4c8c41
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4c8c95
cmp dword [ecx], eax
jle 0x4c8c95
add ecx, 0x1c
jmp 0x4c8c80
cmp word [ecx], 0
je 0x4c8a87
mov edx, dword [esi + 0x2c]
inc eax
add ecx, 0x18
cmp eax, dword [edx]
jl 0x4c8c80
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edi, dword [ebp + 8]
mov edx, dword [eax + ecx + 0x10]
push 0
lea ebx, [eax + ecx + 0x10]
push 0
push 0
push 0x15
mov eax, edi
mov dword [esp + 0x44], ebx
mov dword [edi + 0x1b8], edx
call fcn.004abc10
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x1b8], eax
mov eax, dword [ecx + 0x30]
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x4c8d73
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x18]
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x38]
mov dword [esp + 0x30], eax
xor eax, eax
push eax
push esi
push ecx
mov dword [esp + 0x2c], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call fcn.004a2a60
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [esi + 0x3c], edx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x1c], ecx
mov byte [esi + 4], 0x74
test eax, eax
jne 0x4c8d3a
mov edx, dword [esp + 0x30]
mov dword [esi + 0x30], edx
jmp 0x4c8d4e
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x30], ecx
test ecx, ecx
je 0x4c8d48
mov dword [ecx + 0x34], eax
mov dword [eax + 0x34], esi
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x45], 0
jne 0x4c9083
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4c8ce1
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov edi, dword [edx]
lea eax, [eax + ecx + 0xc]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [eax]
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], edi
call fcn.0046f8d0
mov eax, dword [ebx]
mov ecx, dword [esp + 0x18]
call fcn.0046f8d0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [edx + eax + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [eax]
call fcn.0046f8d0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov dword [ecx], 0
mov ecx, dword [esp + 0x1c]
mov dword [edx], 0
mov edx, dword [esp + 0x14]
lea ecx, [ecx + edx + 0x18]
mov dword [eax], 0
mov eax, dword [ecx]
mov dword [ebx], 0
test eax, eax
je 0x4c8e31
mov edx, dword [eax + 0x20]
cmp edx, 1
jne 0x4c8e27
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x78]
test edx, edx
jne 0x4c8e0c
mov edx, ebx
mov ebx, dword [edx + 0x1c8]
mov dword [eax + 0x4c], ebx
mov dword [edx + 0x1c8], eax
mov dword [ecx], 0
mov dword [esp + 0x30], esi
jmp 0x4c8e48
dec edx
mov dword [eax + 0x20], edx
mov dword [ecx], 0
mov dword [esp + 0x30], esi
jmp 0x4c8e48
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x1c]
mov byte [esp + 0xf], 0
mov dword [esp + 0x14], eax
test eax, eax
je 0x4c8e75
mov ecx, dword [esp + 0x38]
mov dl, byte [ecx]
mov byte [esp + 0xf], dl
jmp 0x4c8e92
push 0
push 0
xor eax, eax
call fcn.004b1810
add esp, 8
mov dword [esi + 0x1c], eax
mov dword [esp + 0x14], eax
test eax, eax
je 0x4c9076
mov ecx, dword [esp + 0x24]
cmp ecx, 1
jle 0x4c8ec0
mov edx, dword [ebp + 0xc]
inc edx
push edx
dec ecx
push ecx
push ebx
call fcn.004b1700
add esp, 0xc
mov dword [esi + 0x1c], eax
cmp byte [ebx + 0x45], 0
mov dword [esp + 0x14], eax
jne 0x4c9076
mov ecx, dword [esp + 0x24]
test ecx, ecx
jle 0x4c8f2a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
lea edx, [ecx + eax + 8]
mov eax, dword [esp + 0x24]
add ebx, 8
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 0x38]
mov esi, dword [esp + 0x18]
call fcn.004b1560
mov edi, dword [esp + 0x20]
push 0x50
mov ecx, 0x14
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x30]
push 0
push ebx
mov dword [esp + 0x34], edx
call sub.MSVCR100.dll_memset
add dword [esp + 0x2c], 0x50
add esp, 0xc
add ebx, 0x50
dec dword [esp + 0x24]
jne 0x4c8ee3
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dl, byte [esp + 0xf]
mov byte [ecx + eax + 0x2c], dl
mov eax, dword [edi + 0x2c]
xor ecx, ecx
cmp eax, ecx
je 0x4c8f65
cmp dword [eax], ecx
jle 0x4c8f5d
lea edx, [eax + 0x1c]
lea ebx, [ebx]
xor ebx, ebx
mov word [edx], bx
inc ecx
add edx, 0x18
cmp ecx, dword [eax]
jl 0x4c8f50
xor ecx, ecx
mov dword [esi + 0x2c], eax
mov dword [edi + 0x2c], ecx
mov eax, dword [edi + 0x20]
mov ebx, dword [esp + 0x18]
cmp eax, ecx
je 0x4c8f84
push 0
push 0
push eax
push ebx
call fcn.004a20e0
add esp, 0x10
mov dword [esp + 0x20], eax
jmp 0x4c8f88
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x2c], 0
jle 0x4c8fa1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.004c3660
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x4c8ff2
mov edx, dword [esi + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esi + 0x28], edx
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4c8fcb
push 0
push 0
push eax
push ebx
call fcn.004a20e0
add esp, 0x10
jmp 0x4c8fcd
xor eax, eax
push eax
mov eax, dword [esi + 0x28]
mov ecx, ebx
call fcn.004a1c60
add esp, 4
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x24]
push 0
push ecx
push ebx
call fcn.004a2500
add esp, 0xc
mov dword [esi + 0x24], eax
jmp 0x4c9007
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x20]
push edx
mov ecx, ebx
call fcn.004a1c60
add esp, 4
mov dword [esi + 0x20], eax
cmp byte [ebx + 0x45], 0
jne 0x4c9042
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x3c]
push 0
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edi]
lea edx, [esp + 0x48]
push esi
push edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
call fcn.004c89a0
add esp, 0xc
mov eax, dword [edi + 8]
and eax, 1
or dword [esi + 8], eax
mov eax, dword [edi + 0x38]
test eax, eax
je 0x4c905c
mov dword [esi + 0x38], eax
mov dword [edi + 0x38], 0
mov esi, dword [esi + 0x30]
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x30], esi
mov dword [esp + 0x10], ecx
test esi, esi
jne 0x4c8e40
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
push ebx
call fcn.004c3330
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret