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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 0x464]
mov eax, dword [ebp + 0x454]
add ecx, ebx
test eax, eax
push esi
mov esi, dword [esp + 0x14]
mov dword [ebp + 0x464], ecx
jne 0x494af3
cmp ebx, 3
jl 0x494ab1
push 0x541704
push esi
call fcn.00435350
add esp, 8
test eax, eax
jne 0x494ae9
push 0x541700
push esi
call fcn.00435350
add esp, 8
test eax, eax
jne 0x494ae9
push 0x5416fc
push esi
call fcn.00435350
add esp, 8
test eax, eax
jne 0x494ae9
lea eax, [ebp + 0x208]
push eax
lea ecx, [esp + 0x10]
call fcn.00464010
mov ecx, dword [esp + 0xc]
mov eax, ecx
and eax, 7
cmp eax, 7
jne 0x494ada
and ecx, 0xfffffff8
mov ecx, dword [ecx + 4]
mov eax, ecx
and eax, 7
cmp eax, 2
jne 0x494ae4
and ecx, 0x1f
mov eax, ecx
cmp eax, 6
jne 0x494af3
mov dword [ebp + 0x450], 1
cmp dword [ebp + 0x450], 1
je 0x494df0
mov eax, dword [ebp + 0x1f0]
test eax, eax
jne 0x494df0
mov al, byte [ebp + 0x1f4]
test al, al
jne 0x494df0
mov eax, dword [ebp + 0x454]
test eax, eax
push edi
jne 0x494b81
mov ecx, dword [ebp + 0x460]
cmp ecx, 0xffffffff
mov dword [ebp + 0x458], 0
je 0x494b5a
mov eax, dword [ebp + 0x468]
test ah, 0x18
je 0x494b4c
test ah, 8
jne 0x494b5a
cmp ecx, ebx
jg 0x494b52
mov ecx, ebx
mov dword [ebp + 0x45c], ecx
jmp 0x494b60
mov dword [ebp + 0x45c], ebx
mov eax, dword [ebp + 0x45c]
push eax
call fcn.0052b380
add esp, 4
test eax, eax
mov dword [ebp + 0x454], eax
jne 0x494bf5
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov ecx, dword [ebp + 0x458]
mov eax, dword [ebp + 0x45c]
lea edx, [ecx + ebx]
cmp edx, eax
jbe 0x494bf5
mov eax, 0xcccccccd
mul ecx
shr edx, 2
cmp ebx, edx
jle 0x494ba4
mov edx, ebx
lea eax, [ecx + edx]
push eax
mov dword [ebp + 0x45c], eax
call fcn.0052b380
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x494b79
mov ecx, dword [ebp + 0x458]
mov esi, dword [ebp + 0x454]
mov eax, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x454]
push ecx
call fcn.00439d00
mov esi, dword [esp + 0x1c]
mov dword [ebp + 0x454], ebx
mov ebx, dword [esp + 0x20]
add esp, 4
mov edi, dword [ebp + 0x458]
add edi, dword [ebp + 0x454]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x458]
mov eax, dword [ebp + 0x450]
add ecx, ebx
test eax, eax
mov dword [ebp + 0x458], ecx
jne 0x494d92
mov ecx, ebp
call fcn.00401440
mov esi, dword [ebp + 0x454]
mov ebx, eax
mov eax, dword [ebp + 0x458]
call fcn.00484100
test eax, eax
je 0x494ca1
mov eax, dword [ebp + 0x468]
test ah, 0x18
mov dword [ebp + 0x450], 1
jne 0x494b79
mov eax, dword [ebp + 0x458]
mov ecx, dword [ebp + 0x454]
push eax
push ecx
mov ecx, ebp
call fcn.00491e50
mov ecx, ebp
call fcn.00492730
mov edx, dword [ebp + 0x454]
push edx
call fcn.00439d00
add esp, 4
pop edi
pop esi
mov dword [ebp + 0x454], 0
pop ebp
pop ebx
pop ecx
ret 8
mov edi, dword [ebp + 0x458]
cmp edi, 2
mov edx, dword [ebp + 0x454]
jl 0x494ccc
cmp byte [edx], 0xff
jne 0x494ccc
cmp byte [edx + 1], 0xd8
jne 0x494ccc
mov dword [ebp + 0x450], 2
jmp 0x494d52
cmp ebx, 8
jl 0x494d01
mov eax, edi
call fcn.00484000
test eax, eax
je 0x494ce8
mov dword [ebp + 0x450], 0x10
jmp 0x494d52
mov eax, edi
mov esi, edx
call fcn.00484030
test eax, eax
je 0x494d01
mov dword [ebp + 0x450], 0x20
jmp 0x494d52
mov eax, dword [ebp + 0x1ec]
test eax, eax
je 0x494d17
mov dword [ebp + 0x450], 0x40
jmp 0x494d92
mov eax, dword [ebp + 0x468]
test ah, 0x18
je 0x494d92
mov eax, dword [ebp + 0x458]
mov ecx, dword [ebp + 0x454]
call fcn.00484070
test eax, eax
je 0x494d92
mov eax, dword [ebp + 0x468]
and eax, 0x800
neg eax
sbb eax, eax
and eax, 4
add eax, 4
mov dword [ebp + 0x450], eax
mov ecx, dword [ebp + 0x98]
mov eax, dword [ecx + 0x2c]
mov ecx, dword [ebp + 0xb4]
add ecx, 0x630
test eax, eax
je 0x494d78
mov eax, dword [eax + 0x4c]
push eax
lea edx, [ebp + 0xb8]
push edx
jmp 0x494d81
push 0
lea eax, [ebp + 0xb8]
push eax
call fcn.004729e0
mov ecx, dword [ebp + 0x98]
push eax
call fcn.0048ddc0
mov eax, dword [ebp + 0x1ec]
test eax, eax
je 0x494db5
mov ecx, dword [ebp + 0xb4]
mov eax, dword [ecx + 0x970]
test eax, eax
je 0x494db5
mov edx, dword [ebp + 0x458]
mov dword [eax + 0x38], edx
cmp dword [ebp + 0x450], 8
jne 0x494b79
mov eax, dword [ebp + 0x458]
mov ecx, dword [ebp + 0x454]
push eax
push ecx
mov ecx, ebp
call fcn.00493dc0
mov ecx, ebp
mov dword [ebp + 0x458], 0
call fcn.00492730
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [ebp + 0x468]
test ah, 0x18
jne 0x494b7a
push ebx
push esi
mov ecx, ebp
call fcn.00491e50
mov ecx, ebp
call fcn.00492730
pop esi
pop ebp
pop ebx
pop ecx
ret 8