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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0x4f3070]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, ecx
xorps xmm0, xmm0
mov ecx, dword [ebp + 8]
push ebx
mov ebx, edx
mov dword [esp + 0x80], ecx
mov ecx, dword [ebp + 0x14]
xor edx, edx
push esi
mov dword [esp + 0x88], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x90], ecx
movlpd qword [esp + 0x70], xmm0
cmp word [ebp + 0x10], dx
je 0x499739
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x4c], 0x40
je 0x499739
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004b4119
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx]
mov dword [esp + 0x94], eax
cmp eax, 0x3f
ja 0x499722
movzx esi, ax
xor ecx, ecx
xor ebx, ebx
mov edi, dword [esp + 0x74]
mov eax, esi
movlpd qword [esp + 0x80], xmm0
bts ecx, eax
movlpd qword [esp + 0x50], xmm0
cmp eax, 0x20
mov byte [esp + 0x20], 1
mov dword [esp + 0x38], esi
cmovae ebx, ecx
mov dword [esp + 0x3c], edx
xor ecx, ebx
mov dword [esp + 0x14], edi
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae ebx, ecx
add ecx, 0xffffffff
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x20]
adc ebx, 0xffffffff
and eax, 0x803
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x70]
neg eax
mov dword [esp + 0x1c], ebx
sbb eax, eax
neg eax
add eax, 0x182
movzx eax, ax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x4c]
cmp edi, eax
ja 0x499f4e
jb 0x4997f8
cmp ebx, dword [esp + 0x78]
jae 0x499f52
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x3c], eax
jg 0x499f4a
cmp dword [esp + 0x3c], 0
jle 0x499827
mov esi, dword [esp + 0x6c]
or esi, dword [edx + 8]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x5c]
or esi, dword [edx + 0xc]
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
cmp edx, eax
jge 0x499850
mov eax, dword [esp + 0x88]
mov eax, dword [eax + 0x18]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], edx
test eax, 0x800
jne 0x499f32
jmp 0x49985e
mov edx, dword [esp + 0x8c]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], edx
test dword [edx + 0x24], 0x400
jne 0x499f40
and eax, 0x80
mov dword [esp + 0x80], eax
je 0x49987f
xor eax, eax
mov word [edx + 0x1e], ax
movzx eax, byte [edx + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8 + 0x34]
xor ecx, ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x499a1b
mov eax, dword [esp + 0x34]
add eax, 4
mov dword [esp + 0x10], eax
mov esi, 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 0x4999fd
mov esi, dword [esi]
test esi, esi
je 0x4999f9
nop word [eax + eax]
mov eax, dword [esi + 4]
test eax, 0x41000
je 0x499915
test eax, 0x40000
je 0x499909
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 4]
jmp 0x49990c
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4998f0
jmp 0x4999f9
test esi, esi
je 0x4999f9
cmp byte [esi], 0xa4
jne 0x4999f9
mov edx, dword [esp + 0x60]
cmp dword [esi + 0x1c], edx
jne 0x4999f9
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x6c]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x64]
not eax
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x58]
push eax
lea ecx, [ecx + 0x50]
call fcn.00495650
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4999f5
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x499993
mov eax, dword [esp + 0x28]
xor ecx, ecx
movzx edx, word [eax + 0x28]
test edx, edx
jle 0x49998f
mov eax, dword [eax + 0x30]
cmp edi, dword [eax]
je 0x49998f
inc ecx
add eax, 4
cmp ecx, edx
jl 0x499983
cmp ecx, edx
jge 0x4999f1
test bl, 0x82
je 0x4999d7
cmp word [esi + 0x20], 0
jl 0x4999d7
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.00450400
mov ebx, eax
test ebx, ebx
jne 0x4999bd
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov edx, dword [edi]
mov ecx, esi
call fcn.004506d0
test eax, eax
je 0x4999f1
mov edx, dword [eax]
mov ecx, dword [ebx]
call fcn.0041ad30
test eax, eax
jne 0x4999f1
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
or ebx, dword [esp + 0x50]
or edi, dword [esp + 0x30]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edi
jmp 0x4999f9
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
add esi, 0x14
inc ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], ecx
cmp ecx, dword [esp + 0x38]
jl 0x4998b0
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x24]
test eax, 0x1000
jne 0x499de5
test eax, 0x100
je 0x499a47
mov dword [esp + 0x58], 0
mov ecx, 1
mov dword [esp + 0x50], 0
jmp 0x499a87
mov edx, dword [edx + 0x20]
mov dword [esp + 0x58], edx
test edx, edx
je 0x499722
test byte [edx + 0x38], 4
jne 0x499722
cmp byte [edx + 0x36], 0
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x50], ecx
movzx ecx, word [edx + 0x34]
je 0x499a7e
mov byte [esp + 0x20], 1
test eax, 0x8000
je 0x499a83
mov byte [esp + 0x20], 0
mov edx, dword [esp + 0x28]
xor al, al
xor esi, esi
mov byte [esp + 0x27], al
mov byte [esp + 0x26], al
mov dword [esp + 0x2c], eax
movzx eax, cx
mov dword [esp + 0x10], esi
mov dword [esp + 0x70], eax
test eax, eax
jle 0x499de5
mov dword [esp + 0x30], esi
nop
movzx ebx, word [edx + 0x18]
mov byte [esp + 0x25], 1
cmp esi, ebx
jge 0x499b2a
movzx eax, word [edx + 0x2a]
cmp esi, eax
jl 0x499b2a
mov edi, dword [edx + 0x30]
mov eax, dword [esp + 0x7c]
mov esi, dword [edi + esi*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x499af8
mov eax, dword [esp + 0x20]
test ecx, 0x180
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x20], cl
jmp 0x499dc8
test cl, 1
je 0x499b26
mov ecx, dword [esp + 0x10]
mov esi, dword [esi]
lea edx, [ecx + 1]
cmp edx, ebx
jge 0x499b26
inc ecx
lea ecx, [edi + ecx*4]
nop
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x499b20
inc edx
add ecx, 4
cmp edx, ebx
jl 0x499b10
jmp 0x499b26
xor al, al
mov byte [esp + 0x25], al
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x58]
test edi, edi
je 0x499b57
mov eax, dword [edi + 4]
movsx edx, word [eax + esi*2]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x44], edx
mov cl, byte [esi + eax]
mov eax, dword [edi + 0xc]
and cl, 1
mov byte [esp + 0x1b], cl
movsx eax, word [eax + 0x28]
cmp edx, eax
jne 0x499b63
jmp 0x499b5c
mov byte [esp + 0x1b], 0
or edx, 0xffffffff
mov dword [esp + 0x44], edx
cmp byte [esp + 0x20], 0
je 0x499b90
test edx, edx
js 0x499b90
cmp esi, ebx
jl 0x499b90
mov eax, dword [edi + 0xc]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x20]
xor esi, esi
movzx edx, dl
mov eax, dword [eax + 4]
cmp byte [eax + ecx*4 + 0xc], 0
cmove edx, esi
mov dword [esp + 0x20], edx
mov bh, byte [esp + 0x25]
xor edi, edi
test bh, bh
je 0x499cbe
mov esi, dword [esp + 0x34]
add esi, 4
mov dword [esp + 0x40], esi
nop dword [eax]
cmp edi, dword [esp + 0x38]
jge 0x499cbe
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 + 0x1c]
and ecx, dword [esp + 0x14]
or edx, ecx
jne 0x499cae
mov ecx, dword [esi]
test ecx, ecx
je 0x499cae
nop dword [eax + eax]
mov eax, dword [ecx + 4]
test eax, 0x41000
je 0x499c15
test eax, 0x40000
je 0x499c09
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 4]
jmp 0x499c0c
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x499bf0
jmp 0x499cae
test ecx, ecx
je 0x499cae
mov al, byte [ebp + 0xc]
mov edx, dword [esp + 0x44]
and al, 0xc0
neg al
sbb al, al
and bh, al
mov bl, bh
cmp edx, 0xffffffff
jl 0x499c4b
cmp byte [ecx], 0xa4
jne 0x499cae
mov eax, dword [esp + 0x60]
cmp dword [ecx + 0x1c], eax
jne 0x499cae
movsx eax, word [ecx + 0x20]
cmp eax, edx
jne 0x499cae
jmp 0x499c6e
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x30]
push dword [esp + 0x60]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx + 4]
call fcn.00458450
add esp, 4
test eax, eax
jne 0x499cae
mov edx, dword [esp + 0x44]
cmp edx, 0xffffffff
je 0x499cec
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.00450400
test eax, eax
jne 0x499c8f
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x58]
mov bh, bl
mov esi, dword [esp + 0x10]
mov edx, dword [ecx + 0x20]
mov ecx, dword [eax]
mov edx, dword [edx + esi*4]
call fcn.0041ad30
test eax, eax
je 0x499cf0
mov esi, dword [esp + 0x40]
add esi, 0x14
inc edi
mov dword [esp + 0x40], esi
test bh, bh
jne 0x499bb0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x499cd1
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp ecx, eax
jge 0x499cd6
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x2c]
test al, al
je 0x499de5
mov byte [esp + 0x20], 1
jmp 0x499df0
mov esi, dword [esp + 0x10]
cmp word [esp + 0x80], 0
mov ebx, dword [esp + 0x28]
je 0x499d06
lea eax, [esi + 1]
mov word [ebx + 0x1e], ax
test byte [ebp + 0xc], 0x40
jne 0x499d6e
cmp byte [esp + 0x27], 0
lea eax, [edi + edi*4]
mov ecx, dword [esp + 0x34]
je 0x499d33
mov al, byte [ecx + eax*4 + 0xc]
mov cl, byte [esp + 0x1b]
and al, 1
xor cl, byte [esp + 0x26]
cmp cl, al
sete al
test al, al
je 0x499cbe
jmp 0x499d6e
mov dl, byte [ecx + eax*4 + 0xc]
and dl, 1
xor dl, byte [esp + 0x1b]
mov byte [esp + 0x26], dl
je 0x499d69
mov eax, dword [esp + 0x3c]
xor ecx, ecx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [esp + 0x90]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x27], 1
mov ecx, dword [esp + 0x34]
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0xc], 2
je 0x499d8f
movzx eax, word [ebx + 0x18]
cmp esi, eax
jne 0x499cbe
or dword [ebx + 0x24], 0x80000
cmp dword [esp + 0x44], 0xffffffff
mov eax, 1
mov edx, dword [esp + 0x2c]
movzx edx, dl
cmove edx, eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x28]
bts eax, edi
cmp edi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edi, 0x40
cmovae ecx, eax
or dword [esp + 0x1c], eax
or dword [esp + 0x14], ecx
mov esi, dword [esp + 0x10]
add dword [esp + 0x30], 0x14
inc esi
mov dword [esp + 0x10], esi
cmp esi, dword [esp + 0x70]
jl 0x499ab0
jmp 0x499cd6
cmp byte [esp + 0x20], 0
je 0x499f1e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x38]
or eax, dword [edx + 8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x68]
or eax, dword [edx + 0xc]
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x40], eax
test esi, esi
jle 0x499f26
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
add ebx, 4
mov dword [esp + 0x2c], ebx
nop dword [eax + eax]
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 + 0x1c]
mov eax, edi
and eax, edx
or ecx, eax
jne 0x499efe
mov ebx, dword [ebx]
test ebx, ebx
je 0x499e72
mov ecx, dword [esp + 0x48]
mov edx, ebx
lea ecx, [ecx + 0x1e8]
call fcn.00494c90
mov ecx, edx
jmp 0x499e83
xorps xmm0, xmm0
movlpd qword [esp + 0x70], xmm0
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], eax
or eax, ecx
mov dword [esp + 0x30], ecx
jne 0x499eda
mov dword [esp + 0x9c], fcn.004528b0
mov eax, 1
mov word [esp + 0xac], ax
mov dword [esp + 0xa0], 0x452740
mov dword [esp + 0xb0], 0
test ebx, ebx
je 0x499eda
mov edx, ebx
lea ecx, [esp + 0x98]
call fcn.0044d840
cmp word [esp + 0xac], 0
je 0x499efa
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
not ecx
and ecx, dword [esp + 0x50]
not eax
and eax, dword [esp + 0x30]
or ecx, eax
jne 0x499efa
or dword [esp + 0x1c], esi
or dword [esp + 0x14], edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
add dword [esp + 0x2c], 0x14
inc eax
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
cmp eax, esi
jl 0x499e30
jmp 0x499f22
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc dword [esp + 0x3c]
test cl, cl
jne 0x4997e0
jmp 0x499f4a
cmp byte [edx + 0x1d], 0
je 0x499f4a
test al, al
jns 0x499f58
mov eax, dword [esp + 0x4c]
cmp ebx, dword [esp + 0x78]
jne 0x499f74
cmp edi, eax
jne 0x499f74
mov al, byte [esp + 0x94]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004b4119
mov esp, ebp
pop ebp
ret
test cl, cl
jne 0x499fe5
lea ebx, [esi - 1]
test ebx, ebx
jle 0x499722
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
mov eax, ecx
adc edx, 0xffffffff
and eax, dword [esp + 0x1c]
mov esi, edx
and esi, edi
cmp eax, ecx
jne 0x499fb2
cmp esi, edx
je 0x499fce
dec ebx
test ebx, ebx
jg 0x499f83
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004b4119
mov esp, ebp
pop ebp
ret
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004b4119
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xb4]
or al, 0xff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b4119
mov esp, ebp
pop ebp
ret