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

Disassembly:
sub esp, 0x2f8
push ebx
push esi
mov esi, dword [esp + 0x308]
push edi
lea edi, [esp + 0x18]
push ebp
mov eax, dword [esi]
mov ecx, 0x13
mov dword [esp + 0x18], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [0x50e324]
mov edx, dword [0x50e328]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 0x4c
cmp dword [esi + 0xc], eax
jne 0x4c7011
mov eax, dword [esi + 0x10]
push eax
call fcn.004c7db0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4c7002
push 2
push 9
call fcn.0048e8c0
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2f8
ret
mov eax, dword [esp + 0x10]
push eax
call dword [0x4ff344]
mov edi, eax
jmp 0x4c7065
push 2
push 0x100
call fcn.00489930
mov dword [esp + 0x18], eax
add esp, 8
test eax, eax
jne 0x4c7041
push 2
push 9
call fcn.0048e8c0
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2f8
ret
mov eax, dword [esp + 0x10]
push eax
call dword [0x4ff344]
mov edi, eax
mov eax, dword [esi + 0xc]
push eax
push 0x1a66
push 0x100
push edi
call fcn.004c8c00
add esp, 0x10
mov dword [esp + 0x28], edi
test edi, edi
je 0x4c70cc
push edi
call dword [0x4ff368]
test eax, eax
jle 0x4c70cc
mov ebp, dword [esp + 0x28]
mov ecx, ebp
mov bl, byte [ebp + eax - 1]
mov ecx, ebp
cmp byte [ebp], 0
je 0x4c70cc
cmp byte [ebp], bl
jne 0x4c70b1
cmp dword [0x50928c], 0
mov eax, 1
je 0x4c70a6
push ebp
call fcn.004c8c40
add esp, 4
test eax, eax
je 0x4c70b1
mov byte [ebp], 0
inc ebp
jmp 0x4c70c6
cmp dword [0x50928c], 0
jne 0x4c70bd
inc ebp
jmp 0x4c70c6
push ebp
call dword [0x4ff538]
mov ebp, eax
cmp byte [ebp], 0
jne 0x4c708a
cmp dword [esi + 0x30], 0
je 0x4c70ef
mov ax, word [esi + 0x34]
lea ecx, [esp + 0x14]
push eax
push 0x5c0
push 4
push ecx
call fcn.004c8c00
add esp, 0x10
test eax, eax
jne 0x4c70ff
lea eax, [esp + 0x14]
push 0
push edi
push eax
call fcn.004c7a30
add esp, 0xc
lea eax, [esp + 0x14]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4c712f
push eax
push 0x4f0
lea eax, [esp + 0x1c8]
push 0x40
push eax
call fcn.004c8c00
lea ecx, [esp + 0x1d0]
add esp, 0x10
jmp 0x4c7132
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4c7153
mov eax, dword [esp + 0x314]
push eax
push ecx
lea ecx, [esp + 0x80]
push 0x40
push ecx
call fcn.00402520
add esp, 0x10
jmp 0x4c7158
mov byte [esp + 0x78], 0
cmp dword [esp + 0x30c], 1
mov dword [esp + 0x50], 6
lea eax, [esp + 0x78]
mov dword [esp + 0x4c], eax
je 0x4c717a
mov dword [esp + 0x50], 0x1804
mov eax, dword [esi]
test eax, eax
je 0x4c7193
cmp eax, 0x3e8
jl 0x4c718e
cmp eax, 0x3e9
jle 0x4c7193
or dword [esp + 0x50], 0x60
call fcn.004d8690
test eax, eax
je 0x4c71b8
or dword [esp + 0x50], 0x80000
mov eax, dword [esi]
test eax, eax
je 0x4c71b1
add eax, 0x3e8
jmp 0x4c71b6
add eax, 0x7d0
mov dword [esi], eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4c71d7
push 0x105
push eax
lea eax, [esp + 0x208]
push eax
call fcn.004c7be0
add esp, 0xc
jmp 0x4c71df
mov byte [esp + 0x200], 0
mov dword [esp + 0x3c], 0x105
mov byte [esp + 0xb8], 0
lea eax, [esp + 0x200]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x20]
cmp eax, 0xb
je 0x4c722b
test eax, eax
je 0x4c7242
lea ecx, [esp + 0xb8]
push 0x105
push ecx
push eax
push 0x1a8c
call fcn.004c7480
add esp, 0x10
cmp byte [esp + 0xb8], 0
jne 0x4c7242
lea eax, [esp + 0xb8]
push 0
push 0x105
push eax
call fcn.0047acd0
add esp, 0xc
lea eax, [esp + 0xb8]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], 0x4c6960
mov dword [esp + 0x48], eax
mov eax, dword [esi]
test eax, eax
je 0x4c7268
movzx eax, ax
mov dword [esp + 0x64], eax
jmp 0x4c7270
mov dword [esp + 0x64], 0x3e8
mov eax, dword [0x50f870]
mov ebx, dword [0x50f874]
lea edx, [esp + 0x68]
mov ebp, dword [0x50f878]
mov ecx, 0x50f870
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x1c]
mov dword [edx + 4], ebx
xor ebx, ebx
mov dword [edx + 8], ebp
mov dword [edx + 0xc], eax
mov dword [0x50f870], ecx
mov eax, dword [esp + 0x5c]
mov dword [0x50f874], ebx
mov dword [0x50f878], eax
lea eax, [esp + 0x1c]
mov dword [0x50f87c], ebx
cmp dword [esp + 0x30c], 1
push eax
jne 0x4c72cf
call fcn.004fe262
jmp 0x4c72d4
call fcn.004fe25c
test eax, eax
jne 0x4c731a
call fcn.004fe256
mov edi, eax
test edi, edi
je 0x4c7312
call fcn.004d8650
test eax, eax
je 0x4c7307
cmp edi, 0xffff
je 0x4c7312
push edi
push 0x5b
call fcn.0048e8c0
add esp, 8
mov edi, dword [0x50f874]
jmp 0x4c731f
push edi
push 0x5b
call fcn.0048e8c0
add esp, 8
mov edi, dword [0x50f874]
jmp 0x4c731f
mov edi, 1
test edi, edi
je 0x4c7432
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4c73bd
cmp eax, 0xb
je 0x4c73bd
mov byte [esp + 0xb8], bl
call fcn.004d8690
test eax, eax
je 0x4c7362
lea eax, [esp + 0xb8]
push 0x105
push eax
call fcn.004f1d40
add esp, 8
jmp 0x4c739b
cmp dword [0x50f868], ebx
je 0x4c739b
lea eax, [esp + 0xb8]
push 0x105
push eax
mov ecx, dword [0x50f868]
push ecx
call fcn.00471790
add esp, 0xc
mov ecx, dword [0x50f868]
push ecx
call fcn.00471590
add esp, 4
mov dword [0x50f868], ebx
cmp byte [esp + 0xb8], bl
je 0x4c73bd
lea eax, [esp + 0xb8]
mov ecx, dword [esi + 0x20]
push eax
push ecx
push 0x1a8c
call fcn.004c74e0
add esp, 0xc
lea ebp, [esi + 0x24]
cmp dword [0x50f87c], ebx
je 0x4c73da
mov eax, dword [0x50f87c]
mov ecx, dword [ebp]
mov dword [ecx], eax
mov dword [0x50f87c], ebx
jmp 0x4c73eb
mov eax, dword [ebp]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.00471450
add esp, 8
mov eax, dword [ebp]
mov ecx, dword [eax]
push ecx
call fcn.00471a60
add esp, 4
test eax, eax
jne 0x4c7432
push 0x45e
call fcn.004a4f20
add esp, 4
push eax
push 2
push 0xef
call fcn.0048e8c0
add esp, 0xc
mov eax, dword [ebp]
mov ecx, dword [eax]
push ecx
call fcn.00471590
add esp, 4
mov ecx, dword [ebp]
mov dword [ecx], ebx
jmp 0x4c72b3
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x70]
lea edx, [esp + 0x68]
mov ecx, 0x50f870
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 0xc]
cmp dword [esp + 0x10], 0
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x18]
mov dword [esi], ecx
je 0x4c746d
mov eax, dword [esp + 0x10]
push eax
call fcn.00489a40
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2f8
ret