Function at 0x4f32e8
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 0x4f3320
test edx, edx
je 0x4f3518
mov edx, dword [edx]
mov ebx, edx
shr ebx, 6
and ebx, 1
and dh, 0x40
je 0x4f3334
mov edx, ebp
mov eax, edi
call fcn.004f30a4
jmp 0x4f333d
test edx, edx
je 0x4f350e
mov edx, dword [edx]
mov ebx, 1
and dh, 0x40
jne 0x4f3315
test ah, 0x40
jne 0x4f3500
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 0x4f33da
test edx, 0x870
jne 0x4f36dc
and edx, 0x40
xor ebx, ebx
test edx, edx
jne 0x4f3386
test ebp, ebp
je 0x4f342e
test byte [ebp], 0x40
je 0x4f342e
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.005518e4
mov eax, dword [esp + 0x3c]
test eax, 0x870
jne 0x4f3410
test al, 3
jne 0x4f3495
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x4f3495
mov eax, dword [ebx]
dec eax
mov dword [ebx], eax
test eax, eax
jle 0x4f3740
mov eax, dword [esi]
test al, 0x80
je 0x4f3408
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.0051051c
test ebx, ebx
je 0x4f37c3
nop
mov ebp, dword [ebx + 0xc]
mov dword [ebx + 0xc], 0
mov dword [esp + 4], 3
mov dword [esp], ebx
call fcn.00509e70
mov ebx, ebp
test ebp, ebp
jne 0x4f3438
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x4f346b
jmp 0x4f3480
mov eax, dword [eax + 4]
test eax, eax
je 0x4f3480
cmp dword [eax], esi
jne 0x4f3464
mov dword [eax + 8], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4f346b
lea esi, [esi]
mov eax, dword [esp + 0x3c]
and eax, 0xfffff78f
mov dword [esp + 0x3c], eax
test al, 3
je 0x4f33e2
test al, 1
jne 0x4f3520
test al, 2
je 0x4f33fb
mov eax, dword [esp + 0x40]
mov edx, dword [eax]
test dl, 4
je 0x4f33fb
mov ecx, dword [eax + 8]
dec ecx
mov dword [eax + 8], ecx
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x4f33fb
mov ebx, edx
and ebx, 0x874
cmp ebx, 4
jne 0x4f33fb
and edx, 8
sete dl
movzx edx, dl
cmp ecx, edx
jne 0x4f33fb
test ecx, ecx
jne 0x4f37cc
mov dword [esp], eax
call fcn.004ee144
jmp 0x4f33fb
mov edx, esi
mov eax, edi
call fcn.004f30a4
jmp 0x4f333d
mov ebx, 1
jmp 0x4f3334
xor ebx, ebx
jmp 0x4f3334
mov edx, dword [esp + 0x78]
and edx, 3
or edx, 0x40
mov dword [esp + 0x28], edx
test ah, 0x40
jne 0x4f3788
lea ecx, [esp + 0x44]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.005106f8
test eax, eax
je 0x4f364e
mov ebp, eax
sub ebp, 0xc
je 0x4f364e
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 0x4f3591
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x4f3591
mov ecx, dword [ebx]
dec ecx
mov dword [ebx], ecx
test ecx, ecx
jle 0x4f36b4
mov dword [esi + 4], 0
mov ecx, eax
or ecx, 8
mov dword [esi], ecx
test eax, 0x870
je 0x4f3614
test al, 0x40
jne 0x4f366c
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 0x4f35dd
lea esi, [esi]
mov ebx, dword [eax + 0xc]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00509e70
mov eax, ebx
test ebx, ebx
jne 0x4f35c4
mov dword [esp], edi
call fcn.0051051c
mov ecx, dword [esi]
and ecx, 0xfffff78f
mov dword [esi], ecx
mov eax, dword [ebp + 0x68]
test eax, eax
jne 0x4f35ff
jmp 0x4f3614
mov eax, dword [eax + 4]
test eax, eax
je 0x4f3614
cmp esi, dword [eax]
jne 0x4f35f8
mov dword [eax + 8], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4f35ff
lea esi, [esi]
mov eax, ecx
and eax, 0xfffffffc
mov dword [esi], eax
mov dword [esi + 4], 0
test cl, 0x80
je 0x4f362f
and cl, 0x7c
mov dword [esi], ecx
dec dword [esi + 8]
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.00510748
test eax, eax
je 0x4f364a
mov esi, eax
sub esi, 0xc
jne 0x4f3570
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.00510620
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004ee144
jmp 0x4f33fb
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.005518e4
jmp 0x4f35a7
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4f375b
mov edi, dword [eax + 4]
test edi, edi
je 0x4f375b
mov dword [esp], ebx
call fcn.004dd854
mov eax, dword [esi]
jmp 0x4f358a
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.0051051c
mov eax, dword [esp + 0x3c]
test al, 0x40
mov edx, dword [esp + 0x20]
je 0x4f3374
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 0x4f3370
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4f3798
mov ebp, dword [eax + 4]
test ebp, ebp
je 0x4f3798
mov dword [esp], ebx
call fcn.004dd854
jmp 0x4f33fb
mov eax, dword [ebx + 4]
test eax, eax
je 0x4f3772
cmp eax, dword [0x5ef7cc]
je 0x4f3772
mov dword [esp], eax
call fcn.004ee144
mov dword [ebx + 8], 0xffffffff
mov dword [esp], ebx
call fcn.0050d50c
mov eax, dword [esi]
jmp 0x4f358a
lea edx, [esp + 0x3c]
mov eax, edi
call fcn.004f30a4
jmp 0x4f3537
mov eax, dword [ebx + 4]
test eax, eax
je 0x4f37af
cmp eax, dword [0x5ef7cc]
je 0x4f37af
mov dword [esp], eax
call fcn.004ee144
mov dword [ebx + 8], 0xffffffff
mov dword [esp], ebx
call fcn.0050d50c
jmp 0x4f33fb
mov eax, dword [esp + 0x3c]
jmp 0x4f33da
add eax, 0xc
mov dword [esp], eax
call fcn.0051051c
jmp 0x4f33fb