Function at 0x4f2554
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 0x4f258c
test edx, edx
je 0x4f2784
mov edx, dword [edx]
mov ebx, edx
shr ebx, 6
and ebx, 1
and dh, 0x40
je 0x4f25a0
mov edx, ebp
mov eax, edi
call fcn.004f2310
jmp 0x4f25a9
test edx, edx
je 0x4f277a
mov edx, dword [edx]
mov ebx, 1
and dh, 0x40
jne 0x4f2581
test ah, 0x40
jne 0x4f276c
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 0x4f2646
test edx, 0x870
jne 0x4f2948
and edx, 0x40
xor ebx, ebx
test edx, edx
jne 0x4f25f2
test ebp, ebp
je 0x4f269a
test byte [ebp], 0x40
je 0x4f269a
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.0054f740
mov eax, dword [esp + 0x3c]
test eax, 0x870
jne 0x4f267c
test al, 3
jne 0x4f2701
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x4f2701
mov eax, dword [ebx]
dec eax
mov dword [ebx], eax
test eax, eax
jle 0x4f29ac
mov eax, dword [esi]
test al, 0x80
je 0x4f2674
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.0050e930
test ebx, ebx
je 0x4f2a3c
nop
mov ebp, dword [ebx + 0xc]
mov dword [ebx + 0xc], 0
mov dword [esp + 4], 3
mov dword [esp], ebx
call fcn.00508de4
mov ebx, ebp
test ebp, ebp
jne 0x4f26a4
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x4f26d7
jmp 0x4f26ec
mov eax, dword [eax + 4]
test eax, eax
je 0x4f26ec
cmp dword [eax], esi
jne 0x4f26d0
mov dword [eax + 8], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4f26d7
lea esi, [esi]
mov eax, dword [esp + 0x3c]
and eax, 0xfffff78f
mov dword [esp + 0x3c], eax
test al, 3
je 0x4f264e
test al, 1
jne 0x4f278c
test al, 2
je 0x4f2667
mov eax, dword [esp + 0x40]
mov edx, dword [eax]
test dl, 4
je 0x4f2667
mov ecx, dword [eax + 8]
dec ecx
mov dword [eax + 8], ecx
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x4f2667
mov ebx, edx
and ebx, 0x874
cmp ebx, 4
jne 0x4f2667
and edx, 8
sete dl
movzx edx, dl
cmp ecx, edx
jne 0x4f2667
test ecx, ecx
jne 0x4f2a45
mov dword [esp], eax
call fcn.004edc48
jmp 0x4f2667
mov edx, esi
mov eax, edi
call fcn.004f2310
jmp 0x4f25a9
mov ebx, 1
jmp 0x4f25a0
xor ebx, ebx
jmp 0x4f25a0
mov edx, dword [esp + 0x78]
and edx, 3
or edx, 0x40
mov dword [esp + 0x28], edx
test ah, 0x40
jne 0x4f29fb
lea ecx, [esp + 0x44]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0050eb0c
test eax, eax
je 0x4f28ba
mov ebp, eax
sub ebp, 0xc
je 0x4f28ba
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 0x4f27fd
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x4f27fd
mov ecx, dword [ebx]
dec ecx
mov dword [ebx], ecx
test ecx, ecx
jle 0x4f2920
mov dword [esi + 4], 0
mov ecx, eax
or ecx, 8
mov dword [esi], ecx
test eax, 0x870
je 0x4f2880
test al, 0x40
jne 0x4f28d8
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 0x4f2849
lea esi, [esi]
mov ebx, dword [eax + 0xc]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00508de4
mov eax, ebx
test ebx, ebx
jne 0x4f2830
mov dword [esp], edi
call fcn.0050e930
mov ecx, dword [esi]
and ecx, 0xfffff78f
mov dword [esi], ecx
mov eax, dword [ebp + 0x68]
test eax, eax
jne 0x4f286b
jmp 0x4f2880
mov eax, dword [eax + 4]
test eax, eax
je 0x4f2880
cmp esi, dword [eax]
jne 0x4f2864
mov dword [eax + 8], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4f286b
lea esi, [esi]
mov eax, ecx
and eax, 0xfffffffc
mov dword [esi], eax
mov dword [esi + 4], 0
test cl, 0x80
je 0x4f289b
and cl, 0x7c
mov dword [esi], ecx
dec dword [esi + 8]
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.0050eb5c
test eax, eax
je 0x4f28b6
mov esi, eax
sub esi, 0xc
jne 0x4f27dc
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0050ea34
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004edc48
jmp 0x4f2667
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.0054f740
jmp 0x4f2813
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x4f29c7
mov edi, dword [ecx + 4]
test edi, edi
je 0x4f29c7
mov dword [esp], ebx
call fcn.004dd020
mov eax, dword [esi]
jmp 0x4f27f6
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.0050e930
mov eax, dword [esp + 0x3c]
test al, 0x40
mov edx, dword [esp + 0x20]
je 0x4f25e0
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 0x4f25dc
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4f2a0b
mov ebp, dword [eax + 4]
test ebp, ebp
je 0x4f2a0b
mov dword [esp], ebx
call fcn.004dd020
jmp 0x4f2667
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4f29e0
cmp ecx, dword [0x5dea6c]
je 0x4f29e0
mov dword [esp], ecx
call fcn.004edc48
mov eax, dword [esi]
mov dword [ebx + 8], 0xffffffff
mov ecx, dword [0x67b764]
mov dword [ebx + 0x10], ecx
mov dword [0x67b764], ebx
jmp 0x4f27f6
lea edx, [esp + 0x3c]
mov eax, edi
call fcn.004f2310
jmp 0x4f27a3
mov eax, dword [ebx + 4]
test eax, eax
je 0x4f2a22
cmp eax, dword [0x5dea6c]
je 0x4f2a22
mov dword [esp], eax
call fcn.004edc48
mov dword [ebx + 8], 0xffffffff
mov eax, dword [0x67b764]
mov dword [ebx + 0x10], eax
mov dword [0x67b764], ebx
jmp 0x4f2667
mov eax, dword [esp + 0x3c]
jmp 0x4f2646
add eax, 0xc
mov dword [esp], eax
call fcn.0050e930
jmp 0x4f2667