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

Disassembly:
push 0xffffffffffffffff
push 0x57f190
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
xor ebx, ebx
cmp ecx, ebx
je 0x4c5196
lea ebp, [ecx + 0xc]
jmp 0x4c5198
xor ebp, ebp
cmp ebp, ebx
mov dword [esp + 0x18], ebp
je 0x4c51a9
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
push ebp
call ecx
xor eax, eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x14], eax
cmp ebp, ebx
mov byte [esp + 0x70], 1
je 0x4c5387
mov edx, dword [ebp]
mov ecx, dword [edx + 0x18]
lea eax, [esp + 0x14]
push eax
push ebp
call ecx
test eax, eax
jl 0x4c5383
mov eax, dword [esp + 0x14]
cmp ebp, eax
je 0x4c5201
cmp eax, ebx
mov esi, eax
je 0x4c51ec
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
push ebp
call edx
mov eax, dword [esp + 0x14]
mov ebp, esi
mov dword [esp + 0x18], ebp
jmp 0x4c5203
mov esi, ebp
cmp esi, ebx
je 0x4c5387
cmp eax, ebx
je 0x4c521b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], ebx
push ebp
call fcn.0055ec00
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x24], edi
je 0x4c5236
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.48025243_2D39_11CE_875D_00608CB78066
mov byte [esp + 0x78], 2
call fcn.0040a190
lea edx, [esp + 0x4c]
push edx
call fcn.00560740
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x60]
push edi
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
call fcn.0055ee20
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x38]
mov dword [esp + 0x50], ecx
push eax
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x5c], edx
call fcn.00409f40
add esp, 0x18
test eax, eax
jne 0x4c52fb
push 1
push edi
call fcn.0055e570
mov esi, eax
add esp, 8
cmp ebp, esi
je 0x4c52dd
cmp esi, ebx
je 0x4c52ca
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
cmp ebp, ebx
je 0x4c52d7
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
push ebp
call edx
mov ebp, esi
mov dword [esp + 0x18], ebp
cmp edi, ebx
mov byte [esp + 0x70], 1
je 0x4c52ee
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
cmp ebp, ebx
jne 0x4c51c0
jmp 0x4c5383
push 0x40
call fcn.0044ff38
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4c5324
lea ecx, [esi + 0x28]
mov dword [esi], vtable.Packet.0
call fcn.004a9fb0
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0xc], ebx
jmp 0x4c5326
xor esi, esi
mov dword [esp + 0x1c], esi
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
push eax
mov dword [esi + 0x24], ebx
push 2
lea ecx, [esi + 0x28]
mov byte [esp + 0x78], 3
mov dword [esi + 0x10], ebx
call fcn.00514000
mov eax, dword [esi + 0x2c]
mov dx, word [0x59a6a0]
push ecx
mov ecx, dword [esp + 0x24]
mov word [eax], dx
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [esp + 0x20], ebx
mov dword [eax], esi
call fcn.004c39d0
cmp edi, ebx
mov byte [esp + 0x70], 1
je 0x4c5383
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0x70], bl
je 0x4c5397
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
cmp ebp, ebx
mov dword [esp + 0x70], 0xffffffff
je 0x4c53ac
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
push ebp
call edx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret