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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0x4ec070]
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 0x493f99
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x4c], 0x40
je 0x493f99
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004ae965
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx]
mov dword [esp + 0x94], eax
cmp eax, 0x3f
ja 0x493f82
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 0x4947ae
jb 0x494058
cmp ebx, dword [esp + 0x78]
jae 0x4947b2
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x3c], eax
jg 0x4947aa
cmp dword [esp + 0x3c], 0
jle 0x494087
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 0x4940b0
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 0x494792
jmp 0x4940be
mov edx, dword [esp + 0x8c]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], edx
test dword [edx + 0x24], 0x400
jne 0x4947a0
and eax, 0x80
mov dword [esp + 0x80], eax
je 0x4940df
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 0x49427b
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 0x49425d
mov esi, dword [esi]
test esi, esi
je 0x494259
nop word [eax + eax]
mov eax, dword [esi + 4]
test eax, 0x41000
je 0x494175
test eax, 0x40000
je 0x494169
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 4]
jmp 0x49416c
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x494150
jmp 0x494259
test esi, esi
je 0x494259
cmp byte [esi], 0xa4
jne 0x494259
mov edx, dword [esp + 0x60]
cmp dword [esi + 0x1c], edx
jne 0x494259
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.0048feb0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x494255
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x4941f3
mov eax, dword [esp + 0x28]
xor ecx, ecx
movzx edx, word [eax + 0x28]
test edx, edx
jle 0x4941ef
mov eax, dword [eax + 0x30]
cmp edi, dword [eax]
je 0x4941ef
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4941e3
cmp ecx, edx
jge 0x494251
test bl, 0x82
je 0x494237
cmp word [esi + 0x20], 0
jl 0x494237
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.0044ac70
mov ebx, eax
test ebx, ebx
jne 0x49421d
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov edx, dword [edi]
mov ecx, esi
call fcn.0044af40
test eax, eax
je 0x494251
mov edx, dword [eax]
mov ecx, dword [ebx]
call fcn.00415560
test eax, eax
jne 0x494251
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 0x494259
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 0x494110
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x24]
test eax, 0x1000
jne 0x494645
test eax, 0x100
je 0x4942a7
mov dword [esp + 0x58], 0
mov ecx, 1
mov dword [esp + 0x50], 0
jmp 0x4942e7
mov edx, dword [edx + 0x20]
mov dword [esp + 0x58], edx
test edx, edx
je 0x493f82
test byte [edx + 0x38], 4
jne 0x493f82
cmp byte [edx + 0x36], 0
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x50], ecx
movzx ecx, word [edx + 0x34]
je 0x4942de
mov byte [esp + 0x20], 1
test eax, 0x8000
je 0x4942e3
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 0x494645
mov dword [esp + 0x30], esi
nop
movzx ebx, word [edx + 0x18]
mov byte [esp + 0x25], 1
cmp esi, ebx
jge 0x49438a
movzx eax, word [edx + 0x2a]
cmp esi, eax
jl 0x49438a
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 0x494358
mov eax, dword [esp + 0x20]
test ecx, 0x180
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x20], cl
jmp 0x494628
test cl, 1
je 0x494386
mov ecx, dword [esp + 0x10]
mov esi, dword [esi]
lea edx, [ecx + 1]
cmp edx, ebx
jge 0x494386
inc ecx
lea ecx, [edi + ecx*4]
nop
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x494380
inc edx
add ecx, 4
cmp edx, ebx
jl 0x494370
jmp 0x494386
xor al, al
mov byte [esp + 0x25], al
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x58]
test edi, edi
je 0x4943b7
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 0x4943c3
jmp 0x4943bc
mov byte [esp + 0x1b], 0
or edx, 0xffffffff
mov dword [esp + 0x44], edx
cmp byte [esp + 0x20], 0
je 0x4943f0
test edx, edx
js 0x4943f0
cmp esi, ebx
jl 0x4943f0
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 0x49451e
mov esi, dword [esp + 0x34]
add esi, 4
mov dword [esp + 0x40], esi
nop dword [eax]
cmp edi, dword [esp + 0x38]
jge 0x49451e
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 0x49450e
mov ecx, dword [esi]
test ecx, ecx
je 0x49450e
nop dword [eax + eax]
mov eax, dword [ecx + 4]
test eax, 0x41000
je 0x494475
test eax, 0x40000
je 0x494469
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 4]
jmp 0x49446c
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x494450
jmp 0x49450e
test ecx, ecx
je 0x49450e
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 0x4944ab
cmp byte [ecx], 0xa4
jne 0x49450e
mov eax, dword [esp + 0x60]
cmp dword [ecx + 0x1c], eax
jne 0x49450e
movsx eax, word [ecx + 0x20]
cmp eax, edx
jne 0x49450e
jmp 0x4944ce
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.00452cc0
add esp, 4
test eax, eax
jne 0x49450e
mov edx, dword [esp + 0x44]
cmp edx, 0xffffffff
je 0x49454c
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.0044ac70
test eax, eax
jne 0x4944ef
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.00415560
test eax, eax
je 0x494550
mov esi, dword [esp + 0x40]
add esi, 0x14
inc edi
mov dword [esp + 0x40], esi
test bh, bh
jne 0x494410
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x494531
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp ecx, eax
jge 0x494536
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x2c]
test al, al
je 0x494645
mov byte [esp + 0x20], 1
jmp 0x494650
mov esi, dword [esp + 0x10]
cmp word [esp + 0x80], 0
mov ebx, dword [esp + 0x28]
je 0x494566
lea eax, [esi + 1]
mov word [ebx + 0x1e], ax
test byte [ebp + 0xc], 0x40
jne 0x4945ce
cmp byte [esp + 0x27], 0
lea eax, [edi + edi*4]
mov ecx, dword [esp + 0x34]
je 0x494593
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 0x49451e
jmp 0x4945ce
mov dl, byte [ecx + eax*4 + 0xc]
and dl, 1
xor dl, byte [esp + 0x1b]
mov byte [esp + 0x26], dl
je 0x4945c9
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 0x4945ef
movzx eax, word [ebx + 0x18]
cmp esi, eax
jne 0x49451e
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 0x494310
jmp 0x494536
cmp byte [esp + 0x20], 0
je 0x49477e
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 0x494786
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 0x49475e
mov ebx, dword [ebx]
test ebx, ebx
je 0x4946d2
mov ecx, dword [esp + 0x48]
mov edx, ebx
lea ecx, [ecx + 0x1e8]
call fcn.0048f4f0
mov ecx, edx
jmp 0x4946e3
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 0x49473a
mov dword [esp + 0x9c], fcn.0044d120
mov eax, 1
mov word [esp + 0xac], ax
mov dword [esp + 0xa0], 0x44cfb0
mov dword [esp + 0xb0], 0
test ebx, ebx
je 0x49473a
mov edx, ebx
lea ecx, [esp + 0x98]
call fcn.004480b0
cmp word [esp + 0xac], 0
je 0x49475a
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 0x49475a
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 0x494690
jmp 0x494782
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 0x494040
jmp 0x4947aa
cmp byte [edx + 0x1d], 0
je 0x4947aa
test al, al
jns 0x4947b8
mov eax, dword [esp + 0x4c]
cmp ebx, dword [esp + 0x78]
jne 0x4947d4
cmp edi, eax
jne 0x4947d4
mov al, byte [esp + 0x94]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004ae965
mov esp, ebp
pop ebp
ret
test cl, cl
jne 0x494845
lea ebx, [esi - 1]
test ebx, ebx
jle 0x493f82
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 0x494812
cmp esi, edx
je 0x49482e
dec ebx
test ebx, ebx
jg 0x4947e3
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004ae965
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.004ae965
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.004ae965
mov esp, ebp
pop ebp
ret