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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, eax
mov ebp, edx
mov edi, ecx
mov eax, dword [eax]
test eax, 0x870
jne 0x4f2b34
test edx, edx
je 0x4f2d2c
mov edx, dword [edx]
mov ebx, edx
shr ebx, 6
and ebx, 1
and dh, 0x40
je 0x4f2b48
mov edx, ebp
mov eax, edi
call fcn.004f28b8
jmp 0x4f2b51
test edx, edx
je 0x4f2d22
mov edx, dword [edx]
mov ebx, 1
and dh, 0x40
jne 0x4f2b29
test ah, 0x40
jne 0x4f2d14
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, eax
mov dword [esp + 0x40], ecx
and eax, 0xffffef73
mov dword [esp + 0x3c], eax
and dword [esi], 0xfffffffc
mov dword [esi + 4], 0
test ebx, ebx
je 0x4f2bee
test edx, 0x870
jne 0x4f2ef0
and edx, 0x40
xor ebx, ebx
test edx, edx
jne 0x4f2b9a
test ebp, ebp
je 0x4f2c42
test byte [ebp], 0x40
je 0x4f2c42
and ah, 0xdf
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x78]
and eax, 3
or eax, 0x40
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
lea ebx, [esp + 0x3c]
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], edi
call fcn.00550f84
mov eax, dword [esp + 0x3c]
test eax, 0x870
jne 0x4f2c24
test al, 3
jne 0x4f2ca9
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x4f2ca9
mov eax, dword [ebx]
dec eax
mov dword [ebx], eax
test eax, eax
jle 0x4f2f54
mov eax, dword [esi]
test al, 0x80
je 0x4f2c1c
and al, 0x7f
mov dword [esi], eax
dec dword [esi + 8]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebx
lea eax, [edi + 0x2a8]
mov dword [esp], eax
call dword [edi + 0x2d4]
mov ebx, dword [eax + 0xc]
mov dword [esp], eax
call fcn.0050fc48
test ebx, ebx
je 0x4f2fd7
nop
mov ebp, dword [ebx + 0xc]
mov dword [ebx + 0xc], 0
mov dword [esp + 4], 3
mov dword [esp], ebx
call fcn.005095c8
mov ebx, ebp
test ebp, ebp
jne 0x4f2c4c
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x4f2c7f
jmp 0x4f2c94
mov eax, dword [eax + 4]
test eax, eax
je 0x4f2c94
cmp dword [eax], esi
jne 0x4f2c78
mov dword [eax + 8], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4f2c7f
lea esi, [esi]
mov eax, dword [esp + 0x3c]
and eax, 0xfffff78f
mov dword [esp + 0x3c], eax
test al, 3
je 0x4f2bf6
test al, 1
jne 0x4f2d34
test al, 2
je 0x4f2c0f
mov eax, dword [esp + 0x40]
mov edx, dword [eax]
test dl, 4
je 0x4f2c0f
mov ecx, dword [eax + 8]
dec ecx
mov dword [eax + 8], ecx
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x4f2c0f
mov ebx, edx
and ebx, 0x874
cmp ebx, 4
jne 0x4f2c0f
and edx, 8
sete dl
movzx edx, dl
cmp ecx, edx
jne 0x4f2c0f
test ecx, ecx
jne 0x4f2fe0
mov dword [esp], eax
call fcn.004ed958
jmp 0x4f2c0f
mov edx, esi
mov eax, edi
call fcn.004f28b8
jmp 0x4f2b51
mov ebx, 1
jmp 0x4f2b48
xor ebx, ebx
jmp 0x4f2b48
mov edx, dword [esp + 0x78]
and edx, 3
or edx, 0x40
mov dword [esp + 0x28], edx
test ah, 0x40
jne 0x4f2f9c
lea ecx, [esp + 0x44]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0050fe24
test eax, eax
je 0x4f2e62
mov ebp, eax
sub ebp, 0xc
je 0x4f2e62
lea edx, [edi + 0x2a8]
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], esi
mov esi, ebp
mov ebp, edi
mov eax, dword [esi]
test al, 3
jne 0x4f2da5
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x4f2da5
mov ecx, dword [ebx]
dec ecx
mov dword [ebx], ecx
test ecx, ecx
jle 0x4f2ec8
mov dword [esi + 4], 0
mov ecx, eax
or ecx, 8
mov dword [esi], ecx
test eax, 0x870
je 0x4f2e28
test al, 0x40
jne 0x4f2e80
mov dword [esp + 4], esi
mov ecx, dword [esp + 0x24]
mov dword [esp], ecx
call dword [ebp + 0x2d4]
mov edi, eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4f2df1
lea esi, [esi]
mov ebx, dword [eax + 0xc]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.005095c8
mov eax, ebx
test ebx, ebx
jne 0x4f2dd8
mov dword [esp], edi
call fcn.0050fc48
mov ecx, dword [esi]
and ecx, 0xfffff78f
mov dword [esi], ecx
mov eax, dword [ebp + 0x68]
test eax, eax
jne 0x4f2e13
jmp 0x4f2e28
mov eax, dword [eax + 4]
test eax, eax
je 0x4f2e28
cmp esi, dword [eax]
jne 0x4f2e0c
mov dword [eax + 8], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4f2e13
lea esi, [esi]
mov eax, ecx
and eax, 0xfffffffc
mov dword [esi], eax
mov dword [esi + 4], 0
test cl, 0x80
je 0x4f2e43
and cl, 0x7c
mov dword [esi], ecx
dec dword [esi + 8]
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.0050fe74
test eax, eax
je 0x4f2e5e
mov esi, eax
sub esi, 0xc
jne 0x4f2d84
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0050fd4c
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004ed958
jmp 0x4f2c0f
mov ecx, dword [esi + 0x1c]
and ah, 0xdf
or eax, 8
mov dword [esi], eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x70]
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], ebp
call fcn.00550f84
jmp 0x4f2dbb
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4f2f6f
mov edi, dword [eax + 4]
test edi, edi
je 0x4f2f6f
mov dword [esp], ebx
call fcn.004dd138
mov eax, dword [esi]
jmp 0x4f2d9e
lea edx, [edi + 0x2a8]
mov dword [esp + 4], esi
mov dword [esp], edx
mov dword [esp + 0x20], edx
call dword [edi + 0x2d4]
mov ebx, dword [eax + 0xc]
and dword [esi], 0xfffff78f
mov dword [esp], eax
call fcn.0050fc48
mov eax, dword [esp + 0x3c]
test al, 0x40
mov edx, dword [esp + 0x20]
je 0x4f2b88
lea eax, [esp + 0x38]
mov dword [esp + 8], eax
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [edi + 0x2d8]
mov dword [eax + 0xc], ebx
mov eax, dword [esp + 0x3c]
mov edx, eax
and edx, 0x40
jmp 0x4f2b84
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4f2fac
mov ebp, dword [eax + 4]
test ebp, ebp
je 0x4f2fac
mov dword [esp], ebx
call fcn.004dd138
jmp 0x4f2c0f
mov eax, dword [ebx + 4]
test eax, eax
je 0x4f2f86
cmp eax, dword [0x5e022c]
je 0x4f2f86
mov dword [esp], eax
call fcn.004ed958
mov dword [ebx + 8], 0xffffffff
mov dword [esp], ebx
call fcn.0050cc38
mov eax, dword [esi]
jmp 0x4f2d9e
lea edx, [esp + 0x3c]
mov eax, edi
call fcn.004f28b8
jmp 0x4f2d4b
mov eax, dword [ebx + 4]
test eax, eax
je 0x4f2fc3
cmp eax, dword [0x5e022c]
je 0x4f2fc3
mov dword [esp], eax
call fcn.004ed958
mov dword [ebx + 8], 0xffffffff
mov dword [esp], ebx
call fcn.0050cc38
jmp 0x4f2c0f
mov eax, dword [esp + 0x3c]
jmp 0x4f2bee
add eax, 0xc
mov dword [esp], eax
call fcn.0050fc48
jmp 0x4f2c0f