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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, edx
mov dword [esp + 0x18], ecx
push ebx
xor ebx, ebx
mov dword [esp + 0xc], eax
push esi
mov edx, dword [eax]
xorps xmm0, xmm0
push edi
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x3c], ebx
mov ecx, dword [edx]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov ecx, dword [ecx]
mov dword [esp + 0x20], ecx
mov byte [esp + 0x13], bl
cmp byte [ecx + 0x57], bl
jne 0x499384
imul esi, dword [ebp + 8], 0x30
add esi, dword [eax + 0x18]
lea eax, [edx + 0x1f0]
mov ecx, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], eax
mov edi, dword [esi]
mov dword [eax], ebx
mov dword [esp + 0x78], edi
mov edx, dword [edi + 0xc]
call fcn.004996cd
mov dword [esp + 0x34], eax
mov al, byte [edi]
mov byte [esp + 0x12], al
movzx eax, al
mov dword [esp + 0x38], edx
mov dword [esp + 0x4c], eax
cmp eax, 0x31
jne 0x498846
mov ecx, dword [esp + 0x1c]
mov edx, edi
call fcn.0046be26
test eax, eax
jne 0x499384
mov edx, dword [edi + 0x14]
mov eax, 0x1000
mov ecx, dword [esp + 0x28]
test dword [edi + 4], eax
je 0x49882f
call fcn.00498571
jmp 0x498834
call fcn.004996f3
mov ecx, eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
or ecx, dword [esp + 0x34]
or edx, dword [esp + 0x38]
jmp 0x49887a
mov edx, dword [edi + 0x10]
mov ecx, dword [esp + 0x28]
call fcn.004996cd
mov ecx, eax
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], ecx
cmp dword [edi + 0xc], ebx
je 0x49886d
test dword [edi + 4], 0x41000
jne 0x49886d
cmp dword [edi + 0x14], ebx
je 0x49883c
mov ecx, dword [esp + 0x28]
mov edx, edi
call fcn.0049969a
mov ecx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
cmp dword [eax], ebx
je 0x498893
mov eax, 0x1000
or word [esi + 0xa], ax
mov eax, dword [edi + 4]
mov dword [esp + 0x64], eax
test al, 3
je 0x498954
mov edx, dword [edi + 0x24]
mov ecx, dword [esp + 0x28]
call fcn.00499991
test byte [esp + 0x64], 1
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x74], eax
je 0x498907
or edx, dword [esp + 0x40]
or ecx, eax
add eax, 0xffffffff
mov dword [esp + 0x68], ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x40]
adc eax, 0xffffffff
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x64], eax
mov eax, edx
shrd dword [esp + 0x68], eax, 1
mov dword [esp + 0x30], edx
shr eax, 1
cmp eax, dword [esp + 0x40]
ja 0x498935
jb 0x498964
mov eax, dword [esp + 0x68]
cmp eax, dword [esp + 0x74]
jae 0x498935
jmp 0x498964
mov eax, edx
mov dword [esp + 0x68], ecx
shrd dword [esp + 0x68], eax, 1
shr eax, 1
cmp eax, dword [esp + 0x40]
jb 0x498954
ja 0x498927
mov eax, dword [esp + 0x68]
cmp eax, dword [esp + 0x74]
jb 0x498954
mov eax, dword [esp + 0x24]
cmp dword [eax], ebx
jle 0x49894a
test byte [eax + 0x2c], 0x40
je 0x49894a
push str.ON_clause_references_tables_to_its_right
push dword [esp + 0x20]
call fcn.00441b18
pop ecx
pop ecx
jmp 0x499384
mov eax, dword [esp + 0x64]
and eax, 0xfffffffd
mov dword [edi + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x58], eax
or dword [esi + 0x14], 0xffffffff
xor eax, eax
or dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0x2c], edx
mov word [esi + 0xc], ax
call fcn.004978c3
test eax, eax
je 0x498be7
mov ecx, dword [edi + 0xc]
call fcn.004691be
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x40], eax
call fcn.004691be
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
and edx, dword [esi + 0x20]
and ecx, dword [esi + 0x24]
or edx, ecx
mov dword [esp + 0x74], eax
mov eax, 0x800
mov dword [esp + 0x54], 0x3fff
je 0x4989c4
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x1c]
test eax, eax
jle 0x4989df
imul ecx, eax, 0x14
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x14]
mov eax, dword [ecx + eax - 0xc]
mov dword [esp + 0x40], eax
jmp 0x4989e3
mov eax, dword [esp + 0x40]
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x7c]
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
call fcn.00498705
mov edx, dword [esp + 0x5c]
add esp, 0x10
test eax, eax
je 0x498a26
mov eax, dword [esp + 0x78]
mov ecx, edx
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esi + 0x18], eax
call fcn.0049793c
and ax, word [esp + 0x54]
mov word [esi + 0xc], ax
cmp byte [esp + 0x12], 0x2d
jne 0x498a36
mov eax, 0x800
or word [esi + 0xa], ax
mov eax, dword [esp + 0x74]
test eax, eax
je 0x498b93
mov ecx, dword [esp + 0x24]
push edx
push eax
push dword [esi + 0x24]
lea edx, [esp + 0x84]
push dword [esi + 0x20]
call fcn.00498705
add esp, 0x10
test eax, eax
je 0x498b93
mov eax, dword [esp + 0x74]
test byte [eax + 4], 0x20
jne 0x498b93
mov dword [esp + 0x50], ebx
cmp dword [esi + 0x14], ebx
jl 0x498b23
mov esi, dword [esp + 0x20]
mov edx, edi
push ebx
push ebx
mov ecx, esi
call fcn.0046a101
pop ecx
pop ecx
mov dword [esp + 0x68], eax
cmp byte [esi + 0x57], bl
je 0x498ab0
test eax, eax
je 0x499384
mov edx, eax
mov ecx, esi
call fcn.00469f9d
jmp 0x499384
mov ecx, dword [esp + 0x14]
mov edx, eax
push 3
call fcn.004977d8
pop ecx
test eax, eax
je 0x499384
mov ecx, dword [esp + 0x14]
mov edx, eax
push dword [ebp + 8]
imul esi, eax, 0x30
add esi, dword [ecx + 0x18]
mov dword [esp + 0x78], esi
call fcn.00497d65
add esp, 4
cmp byte [esp + 0x12], 0x2d
jne 0x498af1
mov eax, 0x800
or word [esi + 0xa], ax
imul esi, dword [ebp + 8], 0x30
mov edx, dword [esp + 0x68]
push 8
pop eax
add esi, dword [ecx + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], esi
or word [esi + 0xa], ax
call fcn.004984d4
test eax, eax
je 0x498b2b
mov eax, 0x800
or word [esi + 0xc], ax
mov dword [esp + 0x50], eax
jmp 0x498b2b
mov dword [esp + 0x68], edi
mov dword [esp + 0x74], esi
mov esi, dword [esp + 0x68]
mov edx, esi
mov ecx, dword [esp + 0x1c]
call fcn.004978e3
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x38]
or ecx, dword [esp + 0x64]
or word [edx + 0xa], ax
mov eax, dword [esp + 0x78]
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x34]
or eax, dword [esp + 0x58]
mov dword [edx + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [edx + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 0x24], ecx
mov dword [edx + 0x2c], eax
movzx ecx, byte [esi]
call fcn.0049793c
add ax, word [esp + 0x50]
and ax, word [esp + 0x54]
mov word [edx + 0xc], ax
mov edx, dword [esp + 0x18]
jmp 0x499063
cmp byte [esp + 0x12], 0x32
jne 0x499061
mov eax, dword [edi + 4]
mov dword [esp + 0x74], eax
test al, 1
jne 0x499061
mov ecx, dword [esp + 0x40]
call fcn.0046b01c
mov edx, esi
test eax, eax
jne 0x499063
mov eax, dword [esp + 0x74]
or eax, 0x20000000
mov byte [edi], 0xaa
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 8], str.false
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov word [esi + 0xc], ax
jmp 0x499063
mov cl, byte [edi]
cmp cl, 0x30
jne 0x498ce4
mov eax, dword [esp + 0x14]
cmp byte [eax + 8], 0x2c
jne 0x498d0c
imul ecx, dword [ebp + 8], 0x30
mov eax, dword [edi + 0x14]
mov esi, dword [esp + 0x14]
add eax, 8
mov dword [esp + 0x68], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ecx
mov edx, dword [eax]
test edx, edx
je 0x498c33
mov ecx, dword [esp + 0x20]
push ebx
push ebx
call fcn.0046a101
pop ecx
pop ecx
mov dword [esp + 0x74], eax
jmp 0x498c37
mov dword [esp + 0x74], ebx
mov edx, dword [edi + 0xc]
test edx, edx
je 0x498c4d
mov ecx, dword [esp + 0x20]
push ebx
push ebx
call fcn.0046a101
pop ecx
pop ecx
jmp 0x498c4f
mov eax, ebx
push dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x70]
movzx edx, byte [eax + 0x4c9034]
call fcn.00469b63
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x498c81
mov eax, dword [edi + 4]
and eax, 3
je 0x498c81
or dword [edx + 4], eax
mov eax, dword [edi + 0x24]
mov dword [edx + 0x24], eax
push 3
mov ecx, esi
call fcn.004977d8
mov edx, dword [esp + 0x18]
mov esi, eax
pop ecx
mov ecx, dword [esp + 0x24]
push esi
call fcn.0049877b
mov eax, dword [esp + 0x18]
mov edx, esi
mov esi, dword [esp + 0x18]
pop ecx
push dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov ecx, esi
add eax, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
call fcn.00497d65
mov ecx, dword [esp + 0x6c]
add esp, 4
mov eax, dword [esp + 0x54]
inc ecx
add eax, 0x14
mov dword [esp + 0x68], ecx
mov dword [esp + 0x54], eax
cmp ecx, 2
jl 0x498c1a
mov edx, dword [esp + 0x18]
jmp 0x499067
cmp cl, 0x2b
jne 0x498d08
push dword [ebp + 8]
mov esi, dword [esp + 0x18]
mov edx, esi
mov ecx, dword [esp + 0x28]
call fcn.00497ed0
imul edx, dword [ebp + 8], 0x30
pop ecx
add edx, dword [esi + 0x18]
jmp 0x499067
mov eax, dword [esp + 0x14]
cmp cl, 0x33
jne 0x498de9
mov eax, dword [edi + 0xc]
mov dword [esp + 0x74], eax
cmp byte [eax], 0xa7
jne 0x499061
cmp word [eax + 0x20], bx
jl 0x499061
test byte [edi + 4], 1
jne 0x499061
test eax, eax
je 0x498d50
mov ecx, dword [esp + 0x20]
mov edx, eax
push ebx
push ebx
call fcn.0046a101
pop ecx
pop ecx
mov esi, eax
jmp 0x498d52
mov esi, ebx
mov ecx, dword [esp + 0x20]
push ebx
push ebx
push 0x79
pop edx
call fcn.004699ad
mov ecx, dword [esp + 0x24]
push eax
push esi
push 0x36
pop edx
call fcn.00469b63
mov esi, dword [esp + 0x24]
mov edx, eax
push 0x83
mov ecx, esi
call fcn.004977d8
add esp, 0x14
mov dword [esp + 0x68], eax
test eax, eax
je 0x498cdb
mov edx, dword [esp + 0x74]
imul esi, eax, 0x30
mov eax, dword [esp + 0x14]
push 4
add esi, dword [eax + 0x18]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov ecx, dword [edx + 0x1c]
mov dword [esi + 0x14], ecx
movsx eax, word [edx + 0x20]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x18], eax
pop eax
push dword [ebp + 8]
mov word [esi + 0xc], ax
call fcn.00497d65
imul edx, dword [ebp + 8], 0x30
add esp, 4
push 8
add edx, dword [ecx + 0x18]
pop eax
or word [edx + 0xa], ax
mov eax, dword [edx + 0x28]
mov ecx, dword [edx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
jmp 0x499063
cmp cl, 0xac
jne 0x499061
cmp byte [eax + 8], 0x2c
jne 0x499061
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x54]
mov edx, edi
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00497966
add esp, 0xc
test eax, eax
je 0x499061
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x74], eax
test ecx, ecx
je 0x498e4c
push ebx
mov edx, ecx
mov ecx, dword [esp + 0x24]
push ebx
call fcn.0046a101
pop ecx
pop ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
jmp 0x498e50
mov dword [esp + 0x4c], ebx
cmp dword [esp + 0x54], ebx
je 0x498eb4
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
cmp byte [eax + 0x57], bl
jne 0x498eb4
mov eax, 0x400
or word [esi + 0xa], ax
mov esi, ebx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x68], ecx
mov cl, byte [ecx]
test cl, cl
je 0x498eb4
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x68]
movzx edx, cl
mov al, byte [edx + 0x4cc8a8]
and al, 0x20
not al
and al, cl
mov byte [ebx + esi], al
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 8]
mov al, byte [edx + 0x4cd408]
mov byte [esi + ecx], al
inc esi
mov ebx, dword [edi + 8]
mov cl, byte [ebx + esi]
test cl, cl
jne 0x498e81
mov edi, dword [esp + 0x78]
xor ebx, ebx
mov ecx, dword [esp + 0x20]
cmp byte [ecx + 0x57], 0
jne 0x498f22
mov esi, dword [esp + 0x4c]
cmp dword [esi + 8], 0
jne 0x498ecc
mov edx, ebx
jmp 0x498edd
push dword [esi + 8]
call fcn.004b5c60
mov edx, eax
pop ecx
and edx, 0x3fffffff
cmp dword [esp + 0x54], 0
mov eax, dword [esi + 8]
mov dword [esp + 0x78], eax
mov cl, byte [edx + eax - 1]
je 0x498f0a
mov esi, dword [esp + 0x50]
xor eax, eax
cmp cl, 0x40
cmove esi, eax
movzx eax, cl
mov dword [esp + 0x68], esi
mov cl, byte [eax + 0x4cd408]
jmp 0x498f12
mov eax, dword [esp + 0x50]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
inc cl
mov byte [edx + eax - 1], cl
mov ecx, dword [esp + 0x20]
jmp 0x498f2a
mov eax, dword [esp + 0x50]
mov dword [esp + 0x68], eax
cmp dword [esp + 0x54], 0
mov eax, 0x4ccdf0
mov esi, str.NOCASE
cmove esi, eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x78], esi
test eax, eax
je 0x498f55
push ebx
push ebx
mov edx, eax
call fcn.0046a101
pop ecx
pop ecx
jmp 0x498f57
mov eax, ebx
push dword [esp + 0x3c]
mov edx, eax
push ecx
mov ecx, dword [esp + 0x24]
push esi
call fcn.00469184
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
push eax
push 0x39
pop edx
call fcn.00469b63
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x498f90
mov eax, dword [edi + 4]
and eax, 3
je 0x498f90
or dword [edx + 4], eax
mov eax, dword [edi + 0x24]
mov dword [edx + 0x24], eax
mov esi, dword [esp + 0x14]
mov ecx, esi
push 0x103
call fcn.004977d8
pop ecx
mov ecx, dword [esp + 0x24]
mov edx, esi
push eax
mov dword [esp + 0x58], eax
call fcn.0049877b
mov eax, dword [esp + 0x78]
pop ecx
test eax, eax
je 0x498fcb
mov ecx, dword [esp + 0x20]
mov edx, eax
push ebx
push ebx
call fcn.0046a101
pop ecx
pop ecx
jmp 0x498fcd
mov eax, ebx
push dword [esp + 0x4c]
mov edx, eax
push ecx
push dword [esp + 0x80]
mov ecx, dword [esp + 0x28]
call fcn.00469184
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
push eax
push 0x38
pop edx
call fcn.00469b63
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x49900c
mov eax, dword [edi + 4]
and eax, 3
je 0x49900c
or dword [edx + 4], eax
mov eax, dword [edi + 0x24]
mov dword [edx + 0x24], eax
push 0x103
mov ecx, esi
call fcn.004977d8
pop ecx
mov ecx, dword [esp + 0x24]
mov edx, esi
push eax
mov dword [esp + 0x7c], eax
call fcn.0049877b
mov eax, dword [ebp + 8]
imul edx, eax, 0x30
pop ecx
add edx, dword [esi + 0x18]
cmp dword [esp + 0x68], 0
mov dword [esp + 0x18], edx
je 0x499067
mov edx, dword [esp + 0x54]
mov ecx, esi
push eax
call fcn.00497d65
mov edx, dword [esp + 0x7c]
add esp, 4
push dword [ebp + 8]
call fcn.00497d65
add esp, 4
jmp 0x498cdb
mov edx, esi
mov esi, dword [esp + 0x14]
mov al, byte [edi]
cmp al, 0x35
je 0x499075
cmp al, 0x2d
jne 0x499150
mov ecx, dword [edi + 0xc]
call fcn.00469495
mov dword [esp + 0x68], eax
cmp eax, 1
jle 0x49914e
mov ecx, dword [edi + 0x10]
call fcn.00469495
mov ecx, dword [esp + 0x68]
cmp eax, ecx
jne 0x49914e
mov eax, dword [edi + 0xc]
test dword [eax + 4], 0x1000
je 0x4990ba
mov eax, dword [edi + 0x10]
test dword [eax + 4], 0x1000
jne 0x49914e
cmp byte [esi + 8], 0x2c
jne 0x49914e
mov edx, dword [edi + 0xc]
push ecx
mov ecx, dword [esp + 0x20]
push ebx
call fcn.004694e8
push dword [esp + 0x70]
mov edx, dword [edi + 0x10]
mov esi, eax
mov ecx, dword [esp + 0x28]
push ebx
call fcn.004694e8
movzx edx, byte [edi]
mov ecx, dword [esp + 0x2c]
push eax
push esi
call fcn.00469b63
mov edx, eax
add esp, 0x18
test edx, edx
je 0x49910d
mov eax, dword [edi + 4]
and eax, 3
je 0x49910d
or dword [edx + 4], eax
mov eax, dword [edi + 0x24]
mov dword [edx + 0x24], eax
mov esi, dword [esp + 0x14]
mov ecx, esi
push 0x8001
call fcn.004977d8
pop ecx
mov ecx, dword [esp + 0x24]
mov edx, esi
push eax
call fcn.0049877b
pop ecx
mov ecx, dword [esp + 0x68]
inc ebx
cmp ebx, ecx
jl 0x4990c4
imul eax, dword [ebp + 8], 0x30
mov ecx, 0x2000
add eax, dword [esi + 0x18]
or word [eax + 0xa], 6
mov word [eax + 0xc], cx
jmp 0x49936f
mov al, byte [edi]
cmp al, 0x31
jne 0x4991e8
cmp dword [edx + 0x1c], ebx
jne 0x4991e8
mov ecx, dword [edi + 0xc]
cmp byte [ecx], 0xb1
jne 0x4991e8
mov eax, 0x1000
test dword [edi + 4], eax
je 0x4991e8
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x34], ebx
jne 0x4991e8
cmp dword [eax + 0x44], ebx
jne 0x4991e8
cmp byte [esi + 8], 0x2c
jne 0x49936f
call fcn.00469495
test eax, eax
jle 0x49936f
push 0x8002
mov edx, edi
mov ecx, esi
call fcn.004977d8
mov esi, eax
inc ebx
mov eax, dword [esp + 0x18]
imul edx, esi, 0x30
pop ecx
push esi
mov ecx, dword [eax + 0x18]
mov dword [edx + ecx + 0x1c], ebx
mov edx, eax
mov ecx, dword [esp + 0x28]
call fcn.0049877b
pop ecx
push dword [ebp + 8]
mov edx, esi
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.00497d65
mov ecx, dword [edi + 0xc]
add esp, 4
call fcn.00469495
cmp ebx, eax
jl 0x499197
jmp 0x49936f
cmp byte [esi + 8], 0x2c
jne 0x49936f
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x78], ebx
push eax
lea eax, [esp + 0x1b]
mov dword [esp + 0x70], ebx
push eax
mov edx, edi
call fcn.00497c06
mov edx, eax
add esp, 0xc
test edx, edx
jle 0x49936f
imul eax, dword [ebp + 8], 0x30
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x4c], eax
dec edx
mov dword [esp + 0x74], edx
test eax, eax
je 0x499257
mov ecx, dword [esp + 0x28]
mov edx, eax
call fcn.0049969a
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x50], edx
jmp 0x49926c
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x68], eax
test ecx, ecx
je 0x499281
mov edx, ecx
mov ecx, dword [esp + 0x28]
call fcn.0049969a
jmp 0x499292
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
and eax, dword [esp + 0x68]
and edx, dword [esp + 0x50]
or eax, edx
jne 0x499353
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4992bb
mov ecx, dword [esp + 0x20]
mov edx, eax
push ebx
push ebx
call fcn.0046a101
pop ecx
pop ecx
jmp 0x4992bd
mov eax, ebx
mov ecx, dword [esp + 0x1c]
push eax
push ebx
push 0x2e
pop edx
call fcn.00469b63
test byte [edi + 4], 1
pop ecx
pop ecx
je 0x4992e1
test eax, eax
je 0x4992e1
or dword [eax + 4], 1
mov ecx, dword [edi + 0x24]
mov dword [eax + 0x24], ecx
push 3
mov edx, eax
mov ecx, esi
call fcn.004977d8
mov edx, eax
mov eax, dword [esp + 0x18]
imul esi, edx, 0x30
pop ecx
push 0x40
add esi, dword [eax + 0x18]
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x1c]
mov dword [esi + 0x14], ecx
movsx eax, word [eax + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x18], eax
pop eax
push dword [ebp + 8]
mov word [esi + 0xc], ax
mov al, byte [esp + 0x17]
mov byte [esi + 0xf], al
call fcn.00497d65
mov ecx, dword [ecx + 0x18]
add esp, 4
add ecx, dword [esp + 0x78]
push 8
pop eax
or word [ecx + 0xa], ax
mov eax, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x4c], eax
test edx, edx
jg 0x499239
imul eax, dword [ebp + 8], 0x30
mov ecx, dword [esp + 0x58]
add eax, dword [esi + 0x18]
or dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x64]
or dword [eax + 0x24], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret