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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x4c70b8
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4c77c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x6c]
call fcn.004c5e4c
cmp byte [ebx + 0x60], 0
jne 0x4c7101
mov eax, dword [ebx + 0x6c]
call fcn.0041e714
test eax, eax
jne 0x4c70f8
mov dl, 2
mov eax, ebx
call fcn.004c84d4
jmp 0x4c7101
mov dl, 1
mov eax, ebx
call fcn.004c84d4
mov eax, dword [ebx + 0x6c]
call fcn.0041e714
mov esi, eax
dec esi
test esi, esi
jl 0x4c71e0
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [ebx + 0x6c]
call fcn.004c5f44
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0xc]
call fcn.004a8818
cmp dword [ebp - 0xc], 0
je 0x4c71d8
cmp byte [ebx + 0x60], 1
jne 0x4c719f
push 0
mov eax, 0x4c77e0
mov dword [ebp - 0x40], eax
mov eax, 0x4c77f0
mov dword [ebp - 0x3c], eax
mov eax, 0x4c7800
mov dword [ebp - 0x38], eax
mov eax, 0x4c7810
mov dword [ebp - 0x34], eax
mov eax, 0x4c7820
mov dword [ebp - 0x30], eax
mov eax, 0x4c783c
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x40]
mov ecx, 5
mov eax, dword [ebp - 0xc]
call fcn.0048fcd8
inc eax
jne 0x4c71d8
mov edx, edi
mov eax, dword [ebx + 0x6c]
call fcn.004c5f44
mov edx, 0x4c7810
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4c71d8
push 0
mov eax, 0x4c7850
mov dword [ebp - 0x48], eax
mov eax, 0x4c785c
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x48]
mov ecx, 1
mov eax, dword [ebp - 0xc]
call fcn.0048fcd8
inc eax
jne 0x4c71d8
mov edx, edi
mov eax, dword [ebx + 0x6c]
call fcn.004c5f44
mov edx, 0x4c7850
mov ecx, dword [eax]
call dword [ecx + 0x40]
inc edi
dec esi
jne 0x4c7117
mov eax, dword [ebx + 0x6c]
call fcn.0041e714
test eax, eax
jle 0x4c7226
cmp dword [ebx + 0x48], 0
je 0x4c7226
mov eax, 0x4c77e0
mov dword [ebp - 0x54], eax
mov eax, 0x4c77f0
mov dword [ebp - 0x50], eax
mov eax, 0x4c7800
mov dword [ebp - 0x4c], eax
lea edx, [ebp - 0x54]
mov ecx, 2
mov eax, dword [ebx + 0x48]
call fcn.004a91b0
test al, al
jne 0x4c7226
lea eax, [ebx + 0x48]
call fcn.004048b0
cmp byte [ebx + 0x60], 1
jne 0x4c72b7
mov eax, dword [ebx + 0x70]
call fcn.004c6b34
lea edx, [ebp - 0x14]
mov eax, dword [0x4bd64c]
call fcn.004bd800
or ecx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x70]
call fcn.004c6ca8
mov eax, dword [ebx + 0x44]
call fcn.00404b68
test eax, eax
jne 0x4c72aa
mov eax, dword [ebx + 0x6c]
cmp dword [eax + 0x2c], 1
jle 0x4c728a
cmp dword [eax + 0x20], 0
jle 0x4c727c
mov edx, 0x4c7868
mov eax, ebx
call fcn.004c82bc
jmp 0x4c72aa
mov edx, 0x4c7880
mov eax, ebx
call fcn.004c82bc
jmp 0x4c72aa
cmp dword [eax + 0x20], 0
jle 0x4c729e
mov edx, 0x4c7868
mov eax, ebx
call fcn.004c82bc
jmp 0x4c72aa
mov edx, 0x4c78a0
mov eax, ebx
call fcn.004c82bc
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + 0x24]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
lea ecx, [ebp - 4]
lea edx, [ebp - 5]
mov eax, ebx
call fcn.004c852c
mov edx, dword [ebx + 0x68]
mov eax, dword [ebx + 0xc0]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp byte [ebx + 0x60], 1
jne 0x4c72ee
mov eax, dword [ebx + 0x6c]
call fcn.0041e714
dec eax
jne 0x4c72ee
mov eax, ebx
call fcn.004c700c
test al, al
jne 0x4c72f2
xor eax, eax
jmp 0x4c72f4
mov al, 1
mov byte [ebx + 0xc6], al
push 1
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 4]
mov dl, byte [ebp - 5]
mov eax, dword [ebx + 0x64]
call fcn.004ae374
mov ecx, dword [ebp - 0x58]
mov edx, 0x4c78b4
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x5c]
push eax
mov cl, byte [ebp - 5]
xor edx, edx
mov eax, dword [ebx + 0x90]
call fcn.004ae8f8
mov ecx, dword [ebp - 0x5c]
mov edx, 0x4c78c4
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
push 0
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 4]
mov dl, byte [ebp - 5]
mov eax, dword [ebx + 0x98]
call fcn.004ae374
mov ecx, dword [ebp - 0x60]
mov edx, 0x4c78d4
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
push 0
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp - 4]
mov dl, byte [ebp - 5]
mov eax, dword [ebx + 0x40]
call fcn.004ae374
mov ecx, dword [ebp - 0x64]
mov edx, 0x4c78e0
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
cmp byte [ebx + 0xc5], 0
jne 0x4c73ba
xor ecx, ecx
mov edx, 0x4c78ec
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
jmp 0x4c73e1
push 0
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 4]
mov dl, byte [ebp - 5]
mov eax, dword [ebx + 0x34]
call fcn.004ae374
mov ecx, dword [ebp - 0x68]
mov edx, 0x4c78ec
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
lea edx, [ebp - 0x6c]
mov eax, dword [ebx + 0x78]
call fcn.0041ef84
mov ecx, dword [ebp - 0x6c]
mov edx, 0x4c78f8
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
cmp byte [ebx + 0x60], 1
jne 0x4c751c
cmp byte [ebx + 0xc6], 0
je 0x4c7462
mov ecx, 0x4c790c
mov edx, 0x4c7918
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
xor ecx, ecx
mov edx, 0x4c7930
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
xor ecx, ecx
mov edx, 0x4c7948
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
xor ecx, ecx
mov edx, 0x4c796c
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
jmp 0x4c758a
cmp dword [ebx + 0x44], 0
je 0x4c74f2
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 0x3c]
call fcn.00404948
cmp dword [ebp - 0x10], 0
jne 0x4c749b
mov edx, 0x4c7988
mov eax, dword [ebx + 0x44]
call fcn.004a9090
test al, al
je 0x4c749b
lea eax, [ebp - 0x10]
mov edx, 0x4c7998
call fcn.00404948
mov ecx, dword [ebx + 0x44]
mov edx, 0x4c7930
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x4c79ac
mov edx, 0x4c7930
mov eax, dword [ebx + 0xc0]
call fcn.004aa328
mov eax, dword [ebx + 0x6c]
call fcn.0041e714
test eax, eax
jle 0x4c74f2
cmp dword [ebp - 0x14], 0
je 0x4c74f2
mov eax, dword [ebp - 0x14]
push eax
mov ecx, 0x4c79bc
mov edx, 0x4c7930
mov eax, dword [ebx + 0xc0]
call fcn.004aa328
mov ecx, 0x4c790c
mov edx, 0x4c7918
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
mov ecx, dword [ebx + 0x48]
mov edx, 0x4c7948
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
jmp 0x4c758a
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 0x3c]
call fcn.00404948
cmp dword [ebp - 0x10], 0
jne 0x4c754b
mov edx, 0x4c7988
mov eax, dword [ebx + 0x44]
call fcn.004a9090
test al, al
je 0x4c754b
lea eax, [ebp - 0x10]
mov edx, 0x4c7998
call fcn.00404948
mov ecx, dword [ebx + 0x44]
mov edx, 0x4c7930
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x4c79ac
mov edx, 0x4c7930
mov eax, dword [ebx + 0xc0]
call fcn.004aa328
mov ecx, dword [ebx + 0x48]
mov edx, 0x4c7948
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
lea edx, [ebp - 0x70]
mov eax, dword [ebx + 0xa8]
call fcn.004abee8
mov ecx, dword [ebp - 0x70]
mov edx, 0x4c79d0
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
push 0
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 4]
mov dl, byte [ebp - 5]
mov eax, dword [ebx + 0xa4]
call fcn.004ae374
mov ecx, dword [ebp - 0x74]
mov edx, 0x4c79e0
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x78]
push eax
mov cl, byte [ebp - 5]
xor edx, edx
mov eax, dword [ebx + 0x88]
call fcn.004ae8f8
mov ecx, dword [ebp - 0x78]
mov edx, 0x4c79f4
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
mov dl, byte [ebp - 5]
mov eax, dword [ebx + 0x94]
call fcn.004adaac
mov ecx, dword [ebp - 0x24]
mov edx, 0x4c7a0c
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
mov ecx, dword [ebp - 0x24]
mov edx, 0x4c7a30
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
mov ecx, dword [ebx + 0x9c]
mov edx, 0x4c7a4c
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
mov eax, ebx
call fcn.004c846c
test al, al
je 0x4c7669
call fcn.0040b1bc
fstp qword [ebp - 0x20]
wait
jmp 0x4c7675
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea edx, [ebp - 0x7c]
xor eax, eax
call fcn.00491190
mov ecx, dword [ebp - 0x7c]
mov edx, 0x4c7a60
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
mov al, byte [ebx + 0x8c]
cmp al, 2
je 0x4c7701
and eax, 0x7f
mov ecx, dword [eax*4 + 0x4e8724]
mov edx, 0x4c7a70
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
lea edx, [ebp - 0x80]
xor eax, eax
mov al, byte [ebx + 0x8c]
inc eax
call fcn.00409200
mov ecx, dword [ebp - 0x80]
mov edx, 0x4c7a84
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
xor eax, eax
mov al, byte [ebx + 0x8c]
mov ecx, dword [eax*4 + 0x4e8738]
mov edx, 0x4c7a98
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
jmp 0x4c7737
xor ecx, ecx
mov edx, 0x4c7a70
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
xor ecx, ecx
mov edx, 0x4c7a84
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
xor ecx, ecx
mov edx, 0x4c7a98
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
mov ecx, dword [ebx + 0x74]
mov edx, 0x4c7aac
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
lea edx, [ebp - 0x84]
mov eax, ebx
call fcn.004c85e4
mov ecx, dword [ebp - 0x84]
mov edx, 0x4c7ac0
mov eax, dword [ebx + 0xc0]
call fcn.004aa24c
mov eax, dword [ebx + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4c7787
mov edx, dword [ebx + 0x5c]
mov eax, dword [ebx + 0xc0]
mov ecx, dword [eax]
call dword [ecx + 0x40]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c77ce
lea eax, [ebp - 0x84]
mov edx, 0xc
call fcn.004048d4
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004048d4
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004048d4
lea eax, [ebp - 4]
call fcn.004048b0
ret