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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x68ae20
push eax
mov eax, dword [0x8189b8]
mov dword fs:[0], esp
sub esp, 0x50
mov edx, dword [eax + 0x3c]
push ebx
xor ebx, ebx
cmp edx, ebx
je 0x4c76f2
push ebp
push esi
push edi
xor eax, eax
lea edi, [ecx + 0x1ec]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
mov ecx, dword [0x8189b8]
push eax
push 1
mov ecx, dword [ecx + 0x3c]
call fcn.004a4c10
mov esi, eax
cmp esi, ebx
jne 0x4c72cf
mov esi, dword [edi - 0xe8]
cmp esi, ebx
je 0x4c723f
mov dword [esp + 0x1c], esi
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x68], 1
cmp ecx, ebx
je 0x4c7208
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x4c7208
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, esi
call fcn.004c6ba0
push 1
lea ecx, [esi + 0x34]
mov byte [esp + 0x6c], 0
call fcn.004031c0
push 1
lea ecx, [esi + 0x14]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004031c0
push esi
call fcn.006713a0
add esp, 4
mov dword [edi - 0xe8], ebx
cmp dword [edi], ebx
je 0x4c76d2
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x44], cl
lea ecx, [esp + 0x44]
call fcn.004031c0
mov edi, 0x6dfe28
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x44]
push ebp
call fcn.00403350
test al, al
je 0x4c729f
mov edi, dword [esp + 0x44]
mov ecx, ebp
mov edx, ecx
mov esi, 0x6dfe28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x48], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x6c], 2
mov ecx, dword [ecx]
mov edx, dword [ecx]
call dword [edx + 0x78]
push 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004031c0
jmp 0x4c76d2
push 0x44
call fcn.00673b05
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
cmp ebp, ebx
mov dword [esp + 0x68], 3
je 0x4c7321
mov dl, byte [esp + 0x13]
lea ecx, [ebp + 0x14]
push ebx
mov byte [ecx], dl
call fcn.004031c0
mov al, byte [esp + 0x13]
lea ecx, [ebp + 0x34]
mov byte [esp + 0x68], 4
push ebx
mov byte [ecx], al
call fcn.004031c0
mov ecx, ebp
mov byte [esp + 0x68], 5
call fcn.004c6ba0
mov byte [esp + 0x68], 3
jmp 0x4c7323
xor ebp, ebp
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x68], 0xffffffff
mov dword [ebp], ecx
mov edx, dword [esi + 0x34]
mov dword [ebp + 4], edx
mov eax, dword [0x6a3564]
push eax
lea ecx, [esi + 4]
lea edi, [ebp + 0x14]
push ebx
push ecx
mov ecx, edi
call fcn.00402fc0
mov edx, dword [esi + 0x38]
push 0xf0
mov dword [ebp + 8], edx
mov eax, dword [esi + 0x3c]
mov dword [ebp + 0xc], eax
mov cx, word [esi + 0x14]
mov word [ebp + 0x24], cx
mov dx, word [esi + 0x16]
mov word [ebp + 0x26], dx
call fcn.00673b05
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0x68], 6
je 0x4c738e
mov ecx, eax
call fcn.004dd1e0
jmp 0x4c7390
xor eax, eax
mov dword [esp + 0x68], 0xffffffff
mov dword [ebp + 0x10], eax
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 0x5c]
mov ecx, dword [ebp + 0x10]
push edi
call fcn.00408db0
mov ecx, dword [ebp + 0x10]
push 0x3f340000
push 0x3f340000
push ebx
push ebx
call fcn.00408fe0
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0x70]
cmp eax, ebx
je 0x4c741f
add eax, 0x80
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x5c], edx
mov eax, dword [ecx]
lea edx, [esp + 0x50]
push edx
call dword [eax + 0x28]
mov eax, dword [edi - 0x70]
mov ecx, dword [ebp + 0x10]
add eax, 0x80
add ecx, 0x90
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
cmp dword [ebp + 0xc], ebx
je 0x4c7440
mov ax, word [ebp + 0x24]
cmp ax, 1
je 0x4c7434
cmp ax, 2
jne 0x4c7458
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x78]
mov edx, dword [ecx]
or al, 0x40
jmp 0x4c7454
mov eax, dword [ebp]
cmp byte [eax + 0x40], 0xff
je 0x4c7458
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x78]
mov edx, dword [ecx]
or ah, 0x20
push eax
call dword [edx + 0x38]
mov ecx, dword [ebp + 0x10]
push 1
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov esi, dword [edi - 0xe8]
cmp esi, ebx
je 0x4c7510
mov dword [esp + 0x1c], esi
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x68], 8
cmp ecx, ebx
je 0x4c7495
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x4c7495
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov ecx, dword [0x6a3564]
lea edi, [esi + 0x14]
push ecx
push ebx
mov ecx, edi
call fcn.00403210
mov word [esi + 0x24], bx
mov word [esi + 0x26], bx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov word [esi + 0x30], 0xffff
mov edx, dword [0x6a3564]
lea ebx, [esi + 0x34]
push edx
push 0
mov ecx, ebx
call fcn.00403210
push 1
mov ecx, ebx
mov byte [esp + 0x6c], 7
call fcn.004031c0
push 1
mov ecx, edi
mov dword [esp + 0x6c], 0xffffffff
call fcn.004031c0
push esi
call fcn.006713a0
mov edi, dword [esp + 0x18]
add esp, 4
xor ebx, ebx
mov dword [edi - 0xe8], ebx
cmp dword [edi], ebx
je 0x4c75cb
mov al, byte [esp + 0x13]
mov edi, 0x6dfe28
mov byte [esp + 0x20], al
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov ebx, ecx
push 1
push ebx
lea ecx, [esp + 0x28]
call fcn.00403350
test al, al
je 0x4c7572
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov edx, ecx
mov esi, 0x6dfe28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
mov byte [eax + ebx], 0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x6c], 9
mov ecx, dword [ecx]
mov edx, dword [ecx]
call dword [edx + 0x78]
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x68], 0xffffffff
je 0x4c75b9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4c75b0
cmp al, 0xff
je 0x4c75b0
dec al
mov byte [ecx], al
jmp 0x4c75b9
push ecx
call fcn.006713a0
add esp, 4
mov edi, dword [esp + 0x14]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
xor ebx, ebx
mov dword [edi - 0xe8], ebp
mov eax, dword [ebp]
cmp eax, ebx
je 0x4c761f
cmp byte [eax + 0x5a], 1
jne 0x4c75f6
mov ecx, dword [edi]
cmp ecx, ebx
je 0x4c76d2
mov eax, dword [ebp + 8]
mov edx, dword [ecx]
push eax
call dword [edx + 0x7c]
jmp 0x4c76d2
cmp eax, ebx
je 0x4c761f
mov cl, byte [eax + 0x5a]
test cl, cl
jne 0x4c761f
cmp byte [eax + 0x40], 0xff
jne 0x4c761f
mov ecx, dword [edi]
cmp ecx, ebx
je 0x4c76d2
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx]
push eax
call dword [edx + 0x7c]
jmp 0x4c76d2
cmp dword [edi], ebx
je 0x4c76d2
mov cl, byte [esp + 0x13]
mov edi, 0x6dfe28
mov byte [esp + 0x30], cl
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x38], ebx
mov ebp, ecx
lea ecx, [esp + 0x34]
push ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00403350
test al, al
je 0x4c7681
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov edx, ecx
mov esi, 0x6dfe28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x6c], 0xa
mov ecx, dword [ecx]
mov edx, dword [ecx]
call dword [edx + 0x78]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x68], 0xffffffff
cmp eax, ebx
je 0x4c76c6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4c76bd
cmp al, 0xff
je 0x4c76bd
dec al
mov byte [ecx], al
jmp 0x4c76c6
push ecx
call fcn.006713a0
add esp, 4
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
inc eax
add edi, 4
cmp eax, 0x1c
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
jl 0x4c71be
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x54]
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret