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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
mov esi, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, edx
mov dword [esp + 0x1c], eax
mov ecx, dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 8]
movdqa xmmword [esp + 0x50], xmm0
test byte [ecx + 0x3c], 0x20
mov dword [esp + 0x18], edx
mov dword [esp + 0x58], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x60], 0
je 0x4947ee
and edx, 0xfbff
mov al, byte [edi]
mov dword [esp + 0x24], edx
cmp al, 0x40
jbe 0x49481e
push 0x40
push str.at_most__d_tables_in_a_join
push esi
call fcn.00433610
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00564de8
mov esp, ebp
pop ebp
ret
test dl, 0x40
je 0x49482a
mov eax, 1
jmp 0x49482d
movzx eax, al
mov esi, eax
mov dword [esp + 0x2c], eax
shl esi, 6
add esi, 0x2df
and esi, 0xfffffff8
lea edi, [esi + 0x48]
mov edx, edi
call fcn.00431480
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x494863
push edi
push 0
push ecx
call fcn.0056cbb0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x40], 0
je 0x49488c
mov edx, ecx
mov ecx, eax
call fcn.00431230
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00564de8
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov byte [ecx + 0x28], al
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x34]
call fcn.0044e200
mov edx, dword [esp + 0x10]
lea ecx, [edx + esi]
mov dword [esp + 0x50], edx
mov esi, dword [esp + 0x20]
mov dword [esp + 0x5c], ecx
mov dword [edx + 0x34], eax
mov eax, dword [esp + 0x24]
mov word [edx + 0x22], ax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x1bc]
mov dword [edx + 0x38], eax
lea eax, [edx + 0x3c]
mov dword [esp + 0x48], eax
lea eax, [edx + 0x140]
mov dword [ecx + 0x28], 0x40000
mov dword [ecx + 0x24], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], eax
lea eax, [ecx + 0x34]
mov dword [ecx + 0x2c], eax
lea ecx, [edx + 0x140]
mov dword [edx + 0x3c], 0
lea eax, [ecx + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 8
mov dword [ecx + 0x14], eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x160], 0
jne 0x494973
mov eax, dword [ecx]
test byte [eax + 0x3c], 8
jne 0x494973
xorps xmm0, xmm0
mov edx, esi
movdqa xmmword [esp + 0x70], xmm0
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x70]
movq qword [esp + 0x80], xmm0
mov dword [esp + 0x70], 0x462370
call fcn.0045bc10
mov ecx, dword [esp + 0x44]
mov edx, esi
push 0x45
call fcn.0048cfd0
mov ecx, dword [esp + 0x18]
add esp, 4
or edx, 0xffffffff
call fcn.0046bac0
test esi, esi
je 0x4949bc
cmp dword [esp + 0x2c], 0
je 0x4949a5
mov ecx, esi
call fcn.0045f850
test eax, eax
je 0x4949bc
mov ecx, dword [esp + 0x10]
mov edx, esi
push 8
push dword [ecx + 0x34]
mov ecx, dword [esp + 0x1c]
call fcn.00462950
add esp, 8
cmp dword [esp + 0x2c], 0
jne 0x4949dd
mov eax, dword [esp + 0x10]
test edi, edi
je 0x4949cf
mov byte [eax + 0x24], 1
test dword [esp + 0x24], 0x400
je 0x4949dd
mov byte [eax + 0x27], 1
mov eax, dword [esp + 0x30]
xor esi, esi
cmp byte [eax], 0
jbe 0x494a0e
mov edi, dword [esp + 0x48]
lea edx, [eax + 0x34]
nop
mov ecx, dword [edi]
lea edx, [edx + 0x48]
mov eax, dword [edx - 0x48]
inc esi
mov dword [edi + ecx*4 + 4], eax
mov eax, dword [esp + 0x30]
inc dword [edi]
movzx eax, byte [eax]
cmp esi, eax
jl 0x4949f0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
mov esi, dword [eax + 0xc]
dec esi
js 0x494a38
mov edi, dword [esp + 0x30]
lea esp, [esp]
push esi
mov edx, eax
mov ecx, edi
call fcn.0048e570
mov eax, dword [esp + 0x48]
add esp, 4
dec esi
jns 0x494a20
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x40], 0
jne 0x494b5e
mov eax, dword [esp + 0x24]
test edi, edi
je 0x494ab0
test eax, 0x400
je 0x494ab0
mov edi, dword [edi]
xor esi, esi
test edi, edi
jle 0x494aed
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 8]
mov eax, dword [edx]
test eax, eax
je 0x494a94
mov edi, edi
mov ecx, dword [eax + 4]
test ecx, 0x1000
je 0x494a94
test ecx, 0x40000
je 0x494a8d
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax]
jmp 0x494a90
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x494a70
cmp byte [eax], 0x98
jne 0x494ae2
cmp word [eax + 0x20], 0
jl 0x494aa8
inc esi
add edx, 0x18
cmp esi, edi
jl 0x494a68
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
and eax, 0x400
mov dword [esp + 0x3c], eax
je 0x494b09
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push esi
push dword [esp + 0x48]
call fcn.0048ee10
add esp, 8
test eax, eax
je 0x494af3
mov edi, dword [esp + 0x10]
mov byte [edi + 0x27], 1
jmp 0x494b0d
mov eax, dword [esp + 0x10]
xor edi, edi
mov dword [eax + 8], edi
jmp 0x494aac
mov edi, dword [esp + 0x18]
jmp 0x494ab0
test edi, edi
mov edi, dword [esp + 0x10]
jne 0x494b0d
mov eax, 0x200
mov dword [edi + 8], esi
or word [edi + 0x22], ax
jmp 0x494b0d
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x2c], 1
jne 0x494b21
lea ecx, [esp + 0x50]
call fcn.004945e0
test eax, eax
jne 0x494b90
lea ecx, [esp + 0x50]
call fcn.00493590
test eax, eax
jne 0x494b5e
xor edx, edx
mov ecx, edi
call fcn.00493e90
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x40], 0
jne 0x494b5e
cmp dword [edi + 8], 0
je 0x494b9a
movzx edx, word [edi + 0x20]
mov ecx, edi
inc dx
call fcn.00493e90
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x40], 0
je 0x494b94
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 0x38]
mov dword [edx + 0x1bc], eax
mov edx, ecx
mov ecx, dword [esp + 0x28]
call fcn.00491ea0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00564de8
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x28]
cmp dword [edi + 8], 0
jne 0x494bb1
test dword [eax + 0x18], 0x20000
je 0x494bb1
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x1c], 0xffffffff
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x44], 0
jne 0x494b5e
cmp byte [eax + 0x40], 0
jne 0x494b5e
cmp byte [edi + 0x28], 2
jb 0x494cdf
test esi, esi
je 0x494cdf
mov ecx, 0x400
test word [eax + 0x3c], cx
jne 0x494cdf
mov ecx, dword [esp + 0x48]
mov edx, esi
call fcn.0048d0f0
mov edi, edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x58]
mov esi, eax
mov dword [esp + 0x20], esi
test edx, edx
je 0x494c16
mov ecx, dword [esp + 0x48]
call fcn.0048d0f0
or esi, eax
or edi, edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x10]
cmp byte [edi + 0x28], 2
jb 0x494cdf
mov edx, dword [edi + 4]
mov dword [esp + 0x40], edx
jmp 0x494c30
mov al, byte [edi + 0x28]
mov byte [esp + 0x3b], al
movzx eax, al
shl eax, 6
mov ecx, dword [eax + edi + 0x2cc]
movzx eax, byte [ecx + 0x10]
lea eax, [eax + eax*8]
test byte [edx + eax*8 + 0x28], 8
je 0x494cdf
cmp word [esp + 0x3c], 0
jne 0x494c67
test dword [ecx + 0x24], 0x1000
je 0x494cdf
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx + 8]
mov ecx, edi
mov dword [esp + 0x18], eax
and ecx, esi
and eax, dword [esp + 0x1c]
or ecx, eax
jne 0x494cdb
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
lea esi, [eax + eax*2]
shl esi, 4
add esi, edx
cmp edx, esi
jae 0x494cb8
mov ecx, dword [edx + 0x28]
mov eax, dword [edx + 0x2c]
and ecx, edi
and eax, dword [esp + 0x18]
or ecx, eax
je 0x494cab
mov eax, dword [edx]
test byte [eax + 4], 1
je 0x494cb4
add edx, 0x30
cmp edx, esi
jb 0x494c93
jmp 0x494cb8
cmp edx, esi
jb 0x494cdb
mov al, byte [esp + 0x3b]
mov edi, dword [esp + 0x10]
dec al
dec dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
mov byte [edi + 0x28], al
cmp al, 2
jae 0x494c30
jmp 0x494cdf
mov edi, dword [esp + 0x10]
mov ecx, dword [edi]
movsx eax, word [edi + 0x20]
add dword [ecx + 0x1bc], eax
test byte [esp + 0x24], 4
je 0x494d09
mov eax, dword [edi + 0x30c]
test dword [eax + 0x24], 0x1000
je 0x494d09
mov byte [edi + 0x25], 1
and dword [eax + 0x24], 0xffffffbf
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jle 0x494f65
lea eax, [edi + 0x30c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], eax
movzx eax, byte [eax - 0x14]
mov esi, 0xfff0bdc0
mov ecx, dword [esp + 0x30]
lea eax, [eax + eax*8]
lea eax, [eax + 1]
mov edi, dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov dword [esp + 0x18], eax
mov edx, dword [edi + 0x44]
test edx, edx
je 0x494d6c
mov eax, dword [esp + 0x28]
xor esi, esi
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x494d6c
mov eax, dword [eax + 0x10]
add eax, 0xc
jmp 0x494d60
cmp dword [eax], edx
je 0x494d6c
inc esi
add eax, 0x10
cmp esi, ecx
jl 0x494d60
mov eax, dword [esp + 0x20]
mov cl, byte [edi + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0x40], eax
test cl, 2
jne 0x494e69
cmp dword [edi + 0xc], 0
jne 0x494e69
mov eax, dword [eax + 0x24]
test eax, 0x400
je 0x494dd0
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x494dac
mov ecx, dword [esp + 0x28]
cmp dword [eax], ecx
je 0x494dac
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x494da1
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
push 0xfffffffffffffff6
push eax
push 0
push 0
push dword [edx + 0x2c]
mov edx, 0x89
call fcn.0044e080
add esp, 0x14
jmp 0x494e69
test cl, 0x10
jne 0x494e69
test al, 0x40
jne 0x494e54
test byte [esp + 0x24], 0x10
jne 0x494e54
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, dword [esp + 0x18]
cmp byte [ecx + 0x25], al
mov edx, dword [edx + 0x2c]
mov ecx, dword [esp + 0x14]
setne al
add eax, 0x30
push eax
push edi
push esi
call fcn.00473430
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp byte [eax + 0x25], 0
jne 0x494e69
cmp word [edi + 0x26], 0x40
jge 0x494e69
mov eax, dword [esp + 0x18]
xor edi, edi
mov edx, dword [eax + 0x38]
mov ecx, dword [eax + 0x3c]
mov eax, edx
or eax, ecx
je 0x494e3d
lea esp, [esp]
shrd edx, ecx, 1
inc edi
shr ecx, 1
mov eax, edx
or eax, ecx
jne 0x494e30
mov eax, dword [esp + 0x34]
mov ecx, eax
push 0xfffffffffffffff2
push edi
mov edx, dword [eax + 0x1c]
dec edx
call fcn.0044e560
add esp, 8
jmp 0x494e69
push dword [edi]
mov ecx, dword [esp + 0x18]
mov edx, esi
push 0
push dword [edi + 0x20]
call fcn.00466950
add esp, 0xc
mov ecx, dword [esp + 0x40]
test dword [ecx + 0x24], 0x200
je 0x494f1c
mov edi, dword [ecx + 0x1c]
mov edx, edi
mov ecx, dword [esp + 0x14]
call fcn.0046c050
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x494e97
mov ecx, eax
jmp 0x494ea4
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x48]
lea eax, [ecx + 1]
mov dword [edx + 0x48], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov dword [eax - 0x2c], ecx
mov eax, dword [edi + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
mov edi, dword [eax + 0x1c]
cmp dword [eax + 0x20], edi
jg 0x494ed8
mov ecx, eax
call fcn.0044de80
test eax, eax
je 0x494ed4
mov edi, 1
jmp 0x494f08
mov eax, dword [esp + 0x34]
inc dword [eax + 0x1c]
lea ecx, [edi + edi*4]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x40]
mov word [eax + ecx*4], 0x30
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x34]
mov edx, edi
push 0xfffffffffffffff0
push dword [esp + 0x50]
call fcn.0044e560
add esp, 8
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.0046bac0
mov edi, dword [esp + 0x48]
xor ecx, ecx
mov edx, dword [edi]
test edx, edx
jle 0x494f4c
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x2c]
lea eax, [edi + 4]
lea ecx, [ecx]
cmp dword [eax], esi
je 0x494f4c
inc ecx
add eax, 4
cmp ecx, edx
jl 0x494f40
mov eax, dword [esp + 0x20]
add eax, 0x40
dec dword [esp + 0x3c]
mov dword [esp + 0x20], eax
jne 0x494d23
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x1c]
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x40], 0
jne 0x494b5e
or ecx, 0xffffffff
or edx, 0xffffffff
xor edi, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], edx
cmp dword [esp + 0x2c], edi
jle 0x495055
mov esi, dword [esp + 0x10]
add esi, 0x2f8
mov eax, dword [esi + 0x14]
test dword [eax + 0x24], 0x4000
je 0x494fe2
lea eax, [esi - 0x20]
push eax
movzx eax, byte [esi]
push edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x3c]
lea eax, [eax + eax*8]
lea eax, [eax + 1]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 0x20]
push eax
call fcn.0048ef80
mov eax, dword [esp + 0x38]
add esp, 0x10
cmp byte [eax + 0x40], 0
jne 0x494b5e
push dword [esp + 0x24]
movzx eax, byte [esi]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
push eax
lea eax, [esi - 0x20]
push edi
push eax
call fcn.004903d0
mov eax, dword [esp + 0x44]
mov edx, edi
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x1c]
mov dword [esi - 4], eax
mov eax, dword [esp + 0x30]
push eax
call fcn.00490600
mov ecx, dword [esi - 0xc]
inc edi
mov dword [esp + 0x34], eax
add esp, 0x18
mov eax, dword [esp + 0x10]
add esi, 0x40
mov dword [esp + 0x3c], edx
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 0x1c]
cmp edi, dword [esp + 0x2c]
jl 0x494fa1
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00564de8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
xor ecx, esp
call fcn.00564de8
mov esp, ebp
pop ebp
ret