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

Disassembly:
mov eax, 0x672710
call fcn.006313fc
sub esp, 0xa0
push ebx
push esi
mov esi, ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], eax
xor ebx, ebx
mov eax, dword [esp + 0xc0]
push edi
add eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc8], eax
call fcn.0045d923
mov edi, eax
mov dword [esp + 0x7c], edi
test edi, edi
je 0x4c4e2f
mov ecx, dword [esi + 0x1c]
mov eax, dword [esp + 0xc4]
sub eax, ecx
push eax
push dword [esp + 0xc4]
lea eax, [ecx + edi]
push eax
call fcn.00631810
add esp, 0xc
cmp dword [esi + 0x1c], ebx
jbe 0x4c4adf
push dword [esi + 0x1c]
push dword [esi + 0x24]
push edi
call fcn.00630c90
add esp, 0xc
push 1
push dword [esi + 0x24]
call fcn.0045d916
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
push ebp
cmp byte [esi + 1], bl
je 0x4c4b6e
push dword [esp + 0xcc]
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
lea eax, [esp + 0xd0]
push eax
push edi
call dword [esi + 0x30]
cmp eax, 0xffffffff
jne 0x4c4b12
push 1
push edi
call fcn.0045d916
jmp 0x4c4b28
cmp eax, 2
je 0x4c4b28
test eax, eax
jne 0x4c4b2f
mov eax, dword [esp + 0xc8]
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], eax
xor eax, eax
jmp 0x4c4e2e
cmp dword [esp + 0x18], ebx
je 0x4c4f05
cmp dword [esp + 0x20], ebx
je 0x4c4b6e
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
call fcn.00630c90
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0xc8], eax
push 1
push dword [esp + 0x24]
call fcn.0045d916
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [0x766000]
push 4
pop eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x70], bl
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ebx
jmp 0x4c4daf
test ebp, ebp
je 0x4c4bb0
cmp ebp, 0x90321
je 0x4c4bb0
cmp ebp, 0x90317
jne 0x4c4e44
cmp ebp, 0x90317
je 0x4c4ed9
mov edx, ebx
mov dword [esp + 0x14], 3
mov ecx, ebx
lea eax, [esp + 0x4c]
test edx, edx
jne 0x4c4bd8
cmp dword [eax + 4], 1
jne 0x4c4bd8
mov edx, eax
test ecx, ecx
jne 0x4c4be4
cmp dword [eax + 4], 5
jne 0x4c4be4
mov ecx, eax
add eax, 0xc
dec dword [esp + 0x14]
jne 0x4c4bcc
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], ecx
test edx, edx
je 0x4c4cd4
cmp dword [edx], 0
jbe 0x4c4cd4
mov esi, dword [esp + 0x24]
mov edi, ebx
mov dword [esp + 0x7c], ebx
cmp dword [esi], ebx
jne 0x4c4c5d
push 0x20
call fcn.00630af1
mov dword [esi], eax
mov dword [esp], 0x400
call fcn.0061c0ee
pop ecx
mov ecx, dword [esi]
mov edx, dword [esp + 0x14]
mov dword [ecx + 0xc], eax
mov eax, dword [esi]
mov dword [eax], ebx
mov eax, dword [esi]
mov dword [eax + 4], ebx
mov eax, dword [esi]
mov dword [eax + 8], 0x400
mov eax, dword [esi]
mov dword [eax + 0x14], ebx
mov eax, dword [esi]
mov dword [eax + 0x18], ebx
mov eax, dword [esi]
mov dword [eax + 0x1c], ebx
mov eax, dword [esi]
mov dword [eax + 0x10], 0x4c4f14
mov eax, dword [esi]
mov ecx, dword [edx]
sub ecx, edi
mov byte [esp + 0x13], bl
mov dword [esp + 0x24], ecx
mov eax, dword [eax + 4]
add eax, ecx
cmp eax, 0x400
jle 0x4c4c8a
mov eax, dword [esi]
mov ecx, 0x400
mov byte [esp + 0x13], 1
sub ecx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov eax, dword [edx + 8]
push ecx
mov ecx, dword [esi]
add eax, edi
push eax
mov eax, dword [ecx + 0xc]
add eax, dword [ecx + 4]
push eax
call fcn.00631810
mov eax, dword [esi]
add esp, 0xc
mov ecx, dword [esp + 0x24]
add edi, ecx
add dword [eax + 4], ecx
cmp byte [esp + 0x13], 0
je 0x4c4cb9
mov esi, dword [esi]
add esi, 0x14
mov edx, dword [esp + 0x14]
cmp edi, dword [edx]
jb 0x4c4c10
mov edi, dword [esp + 0x80]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4c4cfb
push dword [eax]
push dword [eax + 8]
push edi
call fcn.00630c90
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov eax, dword [ecx]
mov dword [esp + 0xc8], eax
mov eax, ecx
jmp 0x4c4d03
test ebp, ebp
je 0x4c4ef0
cmp ebp, 0x90321
jne 0x4c4d79
push dword [esp + 0xcc]
test eax, eax
mov byte [esi + 1], 1
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
je 0x4c4d2c
lea eax, [esp + 0xd0]
push eax
push edi
jmp 0x4c4d3c
lea eax, [esp + 0x8c]
mov dword [esp + 0x8c], ebx
push eax
push ebx
call dword [esi + 0x30]
cmp dword [esp + 0x20], 0
je 0x4c4ef0
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
call fcn.00630c90
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0xc8], eax
push 1
push dword [esp + 0x24]
call fcn.0045d916
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
or dword [esp + 0xb8], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.004c41f4
mov ecx, dword [0x766000]
push 4
pop eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x70], bl
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0xc8]
push ebx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x34]
push ebx
push eax
push dword [esi + 0x10]
mov dword [esp + 0xc8], ebx
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x7c], ebx
call dword [ecx + 0x68]
mov ebp, eax
cmp ebp, 0x80090318
jne 0x4c4b98
mov eax, dword [esp + 0xc8]
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], eax
or dword [esp + 0xb8], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.004c41f4
mov eax, dword [esp + 0x2c]
pop ebp
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
push 1
push edi
call fcn.0045d916
call fcn.00490089
push eax
push 0xe
lea ecx, [esp + 0x90]
call fcn.0048f892
push ebp
push str.error
lea ecx, [esp + 0x90]
mov byte [esp + 0xc0], 1
call fcn.004626fb
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.004916a8
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov byte [esp + 0xb8], 2
jb 0x4c4ea1
mov ecx, dword [ecx]
mov edx, dword [esp + 0xcc]
push ecx
push ebx
push ebx
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x14]
push ebx
push 1
lea ecx, [esp + 0xa0]
call fcn.0042341c
lea ecx, [esp + 0x88]
mov byte [esp + 0xb8], bl
call fcn.0048f8e2
jmp 0x4c4e19
push ebx
call fcn.0061c0ee
pop ecx
push dword [esp + 0xcc]
mov ecx, esi
push ebx
push eax
call fcn.004c4fda
or dword [esp + 0xb8], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.004c41f4
mov ebx, dword [esp + 0x2c]
push 1
push edi
call fcn.0045d916
mov eax, ebx
jmp 0x4c4e2e