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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
mov eax, ecx
mov dword [esp + 0x38], edx
xor ecx, ecx
mov dword [esp + 0x3c], eax
xorps xmm0, xmm0
push esi
push edi
movlpd qword [esp + 0x48], xmm0
cmp word [ebp + 0x10], cx
je 0x4f6218
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x40
jne 0x4f6b9f
movzx eax, word [edx]
mov dword [esp + 0x38], eax
cmp eax, 0x3f
ja 0x4f6b9f
movzx eax, ax
xor edx, edx
bts edx, eax
mov edi, dword [esp + 0x4c]
xor ebx, ebx
movlpd qword [esp + 0x88], xmm0
cmp eax, 0x20
movlpd qword [esp + 0x50], xmm0
mov byte [esp + 0x24], 1
cmovae ebx, edx
mov dword [esp + 0x18], edi
xor edx, ebx
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae ebx, edx
add edx, 0xffffffff
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x24]
adc ebx, 0xffffffff
and eax, 0x803
mov dword [esp + 0x80], ebx
mov ebx, dword [esp + 0x48]
neg eax
mov dword [esp + 0x20], ebx
sbb eax, eax
neg eax
add eax, 0x182
xor esi, esi
movzx eax, ax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x78], esi
mov dword [esp + 0x64], eax
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esp + 0x80]
cmp edi, eax
ja 0x4f6b1f
jb 0x4f62ee
cmp ebx, dword [esp + 0x84]
jae 0x4f6b26
movzx eax, word [ebp + 0x10]
cmp esi, eax
jg 0x4f6b41
test esi, esi
jle 0x4f6318
mov edi, dword [esp + 0x64]
or edi, dword [ecx + 8]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x68]
or edi, dword [ecx + 0xc]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x18]
cmp esi, eax
jge 0x4f633a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov esi, dword [eax + esi*4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], esi
test eax, 0x800
je 0x4f6344
mov ecx, esi
jmp 0x4f6b07
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], esi
test dword [esi + 0x2c], 0x400
jne 0x4f6b37
and eax, 0x80
mov dword [esp + 0x88], eax
je 0x4f6365
xor eax, eax
mov word [esi + 0x1e], ax
movzx eax, byte [esi + 0x10]
mov edx, dword [esp + 0x38]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8 + 0x34]
xor ecx, ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x2c], ecx
test dx, dx
je 0x4f656d
mov eax, dword [esp + 0x40]
add eax, 8
mov dword [esp + 0x14], eax
mov esi, eax
nop dword [eax + eax]
mov eax, ecx
xor edx, edx
xor ecx, ecx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov dword [esp + 0x50], ecx
cmovae edx, ecx
and ecx, ebx
mov eax, edx
mov dword [esp + 0x30], edx
and eax, edi
or ecx, eax
jne 0x4f654a
mov esi, dword [esi]
test esi, esi
je 0x4f6546
nop word [eax + eax]
mov eax, dword [esi + 4]
test eax, 0x41000
je 0x4f6405
test eax, 0x40000
je 0x4f63f9
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 8]
jmp 0x4f63fc
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4f63e0
jmp 0x4f6546
mov al, byte [esi]
cmp al, 0xa7
je 0x4f6413
cmp al, 0xa9
jne 0x4f6546
mov edx, dword [esp + 0x6c]
cmp dword [esi + 0x1c], edx
jne 0x4f6546
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x64]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x70]
not eax
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x54]
push eax
lea ecx, [ecx + 0x58]
call fcn.004f1120
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4f6542
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x4f6484
mov eax, dword [esp + 0x28]
xor ecx, ecx
movzx edx, word [eax + 0x30]
test edx, edx
je 0x4f647c
mov eax, dword [eax + 0x38]
cmp edi, dword [eax]
je 0x4f647c
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4f6470
cmp ecx, edx
jge 0x4f653e
test bl, 0x82
je 0x4f650f
cmp word [esi + 0x20], 0
jl 0x4f650f
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.0049b030
mov ebx, eax
test ebx, ebx
jne 0x4f64b2
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov eax, dword [edi]
test dword [eax + 4], 0x200
je 0x4f64c5
mov edi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
jmp 0x4f64cb
mov edi, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
test dword [edx + 4], 0x100
jne 0x4f64ee
test edi, edi
je 0x4f64e1
test dword [edi + 4], 0x100
jne 0x4f64ec
mov ecx, esi
call fcn.0049b030
test eax, eax
jne 0x4f64f9
mov edx, edi
mov ecx, esi
call fcn.0049b030
test eax, eax
je 0x4f653e
mov edi, dword [eax]
mov edx, dword [ebx]
sub edi, edx
nop
movzx eax, byte [edx]
movzx esi, byte [edx + edi]
cmp eax, esi
jne 0x4f6529
test eax, eax
jne 0x4f653b
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
or ebx, dword [esp + 0x50]
or edi, dword [esp + 0x30]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], edi
jmp 0x4f6546
movzx ecx, byte [eax + 0x57ac38]
movzx eax, byte [esi + 0x57ac38]
sub ecx, eax
jne 0x4f653e
inc edx
jmp 0x4f6500
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
add esi, 0x14
mov edx, dword [esp + 0x38]
inc ecx
movzx eax, dx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], esi
cmp ecx, eax
jl 0x4f63a0
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x2c]
test eax, 0x1000
jne 0x4f69c3
test eax, 0x100
je 0x4f6599
mov dword [esp + 0x5c], 0
mov ecx, 1
mov dword [esp + 0x50], 0
jmp 0x4f65d5
mov edx, dword [esi + 0x20]
mov dword [esp + 0x5c], edx
test edx, edx
je 0x4f6b9f
test byte [edx + 0x38], 4
jne 0x4f6b9f
cmp byte [edx + 0x36], 0
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x50], ecx
movzx ecx, word [edx + 0x34]
je 0x4f65d0
mov byte [esp + 0x24], 1
test eax, 0x8000
je 0x4f65d5
mov byte [esp + 0x24], 0
xor al, al
xor dl, dl
mov byte [esp + 0x1f], al
mov dword [esp + 0x2c], eax
movzx eax, cx
mov byte [esp + 0x1e], dl
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x48], eax
test eax, eax
je 0x4f69c3
mov dword [esp + 0x30], edx
nop
movzx edi, word [esi + 0x18]
mov bl, 1
mov byte [esp + 0x13], bl
cmp edx, edi
jge 0x4f6676
movzx eax, word [esi + 0x32]
cmp edx, eax
jl 0x4f6676
mov ebx, dword [esi + 0x38]
mov eax, dword [esp + 0x7c]
mov esi, dword [ebx + edx*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x4f6649
mov eax, dword [esp + 0x24]
test ecx, 0x180
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x24], cl
jmp 0x4f69a6
test cl, 1
je 0x4f66a9
mov esi, dword [esi]
inc edx
cmp edx, edi
jge 0x4f666e
mov ecx, dword [esp + 0x14]
inc ecx
lea ecx, [ebx + ecx*4]
nop dword [eax]
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x4f66a5
inc edx
add ecx, 4
cmp edx, edi
jl 0x4f6660
mov bl, byte [esp + 0x13]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x4f66af
mov eax, dword [esi + 4]
movsx ecx, word [eax + edx*2]
mov eax, dword [esi + 0x1c]
mov bh, byte [edx + eax]
mov eax, dword [esi + 0xc]
and bh, 1
mov byte [esp + 0x13], bh
movsx eax, word [eax + 0x20]
cmp ecx, eax
mov eax, 0xffffffff
cmove ecx, eax
jmp 0x4f66b7
xor bl, bl
jmp 0x4f6672
mov bl, byte [esp + 0x13]
jmp 0x4f6676
or ecx, 0xffffffff
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], ecx
test al, al
je 0x4f66f0
test ecx, ecx
js 0x4f66e1
cmp edx, edi
jl 0x4f66f0
mov eax, dword [esi + 0xc]
add ecx, ecx
mov eax, dword [eax + 4]
test byte [eax + ecx*8 + 4], 0xf
jne 0x4f66f0
mov byte [esp + 0x24], 0
jmp 0x4f66f0
xor edx, edx
movzx eax, al
cmp ecx, 0xfffffffe
cmove eax, edx
mov dword [esp + 0x24], eax
xor edi, edi
test bl, bl
je 0x4f6879
mov esi, dword [esp + 0x40]
add esi, 8
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0x38]
movzx eax, cx
cmp edi, eax
jge 0x4f6879
xor edx, edx
xor ecx, ecx
mov eax, edi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x20]
and ecx, dword [esp + 0x18]
or edx, ecx
jne 0x4f6869
mov edx, dword [esi]
test edx, edx
je 0x4f6869
mov eax, dword [edx + 4]
test eax, 0x41000
je 0x4f676a
test eax, 0x40000
je 0x4f675e
mov eax, dword [edx + 0x14]
mov edx, dword [eax + 8]
jmp 0x4f6761
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x4f6745
jmp 0x4f6869
mov al, byte [ebp + 0xc]
mov ecx, dword [esp + 0x60]
and al, 0xc0
neg al
sbb al, al
and bl, al
mov bh, bl
cmp ecx, 0xffffffff
jl 0x4f67ab
mov al, byte [edx]
cmp al, 0xa7
je 0x4f678e
cmp al, 0xa9
jne 0x4f6869
mov eax, dword [esp + 0x6c]
mov bl, bh
cmp dword [edx + 0x1c], eax
jne 0x4f6869
movsx eax, word [edx + 0x20]
cmp eax, ecx
jne 0x4f6869
jmp 0x4f6817
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + ecx + 8]
test ecx, ecx
je 0x4f67e0
nop
mov eax, dword [ecx + 4]
test eax, 0x41000
je 0x4f67e0
test eax, 0x40000
je 0x4f67d9
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + 8]
jmp 0x4f67dc
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x4f67c0
mov eax, dword [edx + 4]
test eax, 0x41000
je 0x4f6800
test eax, 0x40000
je 0x4f67f9
mov eax, dword [edx + 0x14]
mov edx, dword [eax + 8]
jmp 0x4f67fc
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x4f67e0
push dword [esp + 0x6c]
push ecx
xor ecx, ecx
call fcn.004a4710
add esp, 8
test eax, eax
jne 0x4f6869
mov ecx, dword [esp + 0x60]
cmp ecx, 0xffffffff
je 0x4f68bb
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.0049b030
test eax, eax
jne 0x4f683c
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x20]
mov esi, dword [eax + ecx*4]
sub esi, edx
nop
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4f68a6
test ecx, ecx
jne 0x4f68b8
mov bl, bh
test ecx, ecx
je 0x4f68bb
mov esi, dword [esp + 0x3c]
add esi, 0x14
inc edi
mov dword [esp + 0x3c], esi
test bl, bl
jne 0x4f6705
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4f688c
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp ecx, eax
jge 0x4f6891
mov byte [esp + 0x24], 0
cmp byte [esp + 0x2c], 0
je 0x4f69c3
mov byte [esp + 0x24], 1
jmp 0x4f69ce
movzx eax, byte [eax + 0x57ac38]
movzx ecx, byte [ecx + 0x57ac38]
sub ecx, eax
jne 0x4f685f
inc edx
jmp 0x4f6850
cmp word [esp + 0x88], 0
mov esi, dword [esp + 0x28]
je 0x4f68d3
mov eax, dword [esp + 0x14]
inc eax
mov word [esi + 0x1e], ax
test byte [ebp + 0xc], 0x40
mov byte [esp + 0x37], 1
jne 0x4f694c
mov ecx, dword [esp + 0x40]
lea eax, [edi + edi*4]
mov bh, byte [esp + 0x1f]
mov dl, byte [ecx + eax*4 + 0x10]
and dl, 1
test bh, bh
je 0x4f691c
mov dh, byte [esp + 0x1e]
xor ecx, ecx
mov bl, byte [esp + 0x13]
movzx eax, byte [esp + 0x37]
xor bl, dh
cmp bl, dl
mov byte [esp + 0x1e], dh
mov byte [esp + 0x1f], bh
cmove ecx, eax
test cl, cl
je 0x4f6879
jmp 0x4f694c
xor dl, byte [esp + 0x13]
mov byte [esp + 0x1e], dl
je 0x4f6947
mov eax, dword [esp + 0x78]
xor ecx, ecx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [ebp + 0x18]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x1f], 1
mov ecx, dword [esp + 0x40]
lea eax, [edi + edi*4]
mov edx, dword [esp + 0x14]
test byte [ecx + eax*4 + 0x10], 2
je 0x4f6971
movzx eax, word [esi + 0x18]
cmp edx, eax
jne 0x4f6879
or dword [esi + 0x2c], 0x80000
cmp dword [esp + 0x60], 0xffffffff
mov ecx, 1
mov eax, dword [esp + 0x2c]
movzx eax, al
cmove eax, ecx
xor ecx, ecx
mov dword [esp + 0x2c], eax
xor eax, eax
bts eax, edi
cmp edi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edi, 0x40
cmovae ecx, eax
or dword [esp + 0x20], eax
or dword [esp + 0x18], ecx
add dword [esp + 0x30], 0x14
inc edx
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x48]
jge 0x4f6891
mov esi, dword [esp + 0x28]
jmp 0x4f6600
cmp byte [esp + 0x24], 0
je 0x4f6af7
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x70]
or eax, dword [ecx + 8]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x74]
or eax, dword [ecx + 0xc]
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0x3c], eax
cmp word [esp + 0x38], ax
je 0x4f6afb
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
add ebx, 8
mov dword [esp + 0x2c], ebx
xor esi, esi
xor edi, edi
bts esi, eax
cmp eax, 0x20
cmovae edi, esi
xor esi, edi
cmp eax, 0x40
mov ecx, esi
cmovae edi, esi
and ecx, dword [esp + 0x20]
mov eax, edi
and eax, edx
or ecx, eax
jne 0x4f6ad6
mov ebx, dword [ebx]
test ebx, ebx
je 0x4f6a4a
mov ecx, dword [esp + 0x44]
mov edx, ebx
lea ecx, [ecx + 0x1f8]
call fcn.004f0810
mov ecx, edx
jmp 0x4f6a5b
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], eax
or eax, ecx
mov dword [esp + 0x30], ecx
jne 0x4f6ab2
mov dword [esp + 0x98], fcn.0049dbe0
mov eax, 1
mov word [esp + 0xa8], ax
mov dword [esp + 0x9c], 0x49dac0
mov dword [esp + 0xac], 0
test ebx, ebx
je 0x4f6ab2
mov edx, ebx
lea ecx, [esp + 0x94]
call fcn.00497e80
cmp word [esp + 0xa8], 0
je 0x4f6ad2
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
not ecx
and ecx, dword [esp + 0x50]
not eax
and eax, dword [esp + 0x30]
or ecx, eax
jne 0x4f6ad2
or dword [esp + 0x20], esi
or dword [esp + 0x18], edi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
inc eax
add dword [esp + 0x2c], 0x14
movzx ecx, bx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
cmp eax, ecx
jl 0x4f6a08
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x78]
inc esi
mov dword [esp + 0x78], esi
test dl, dl
jne 0x4f62d0
mov eax, dword [esp + 0x80]
cmp ebx, dword [esp + 0x84]
jne 0x4f6b41
cmp edi, eax
jne 0x4f6b41
mov al, byte [esp + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x20], 0
je 0x4f6b41
test al, al
jns 0x4f6b2c
test dl, dl
jne 0x4f6bb1
mov ecx, dword [esp + 0x38]
movzx eax, cx
lea ebx, [eax - 1]
test ebx, ebx
jle 0x4f6b9f
cmp ebx, 0x40
jge 0x4f6b77
xor ecx, ecx
xor edx, edx
mov eax, ebx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
add ecx, 0xffffffff
adc edx, 0xffffffff
jmp 0x4f6b88
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov eax, ecx
mov esi, edx
and eax, dword [esp + 0x20]
and esi, edi
cmp eax, ecx
jne 0x4f6b9a
cmp esi, edx
je 0x4f6ba8
dec ebx
test ebx, ebx
jg 0x4f6b53
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or al, 0xff
pop ebx
mov esp, ebp
pop ebp
ret