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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
push edi
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [esp + 0x18], esi
mov eax, dword [esi + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov dword [esp + 0x20], eax
movlpd qword [esp + 0x78], xmm0
test edi, edi
je 0x4899d0
xor ecx, ecx
cmp dword [edi], 0x40
cmovge edi, ecx
mov dword [ebp + 0xc], edi
mov al, byte [eax + 0x44]
mov ecx, dword [ebp + 0x14]
and al, 0x10
mov byte [esp + 0x3f], al
mov eax, ecx
and eax, 0xfeff
mov dword [esp + 0x70], edi
cmp byte [esp + 0x3f], 0
movzx edx, ax
movzx eax, cx
cmove edx, eax
movzx eax, dx
mov ecx, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
cmp ecx, 0x40
jle 0x489a21
push 0x40
push str.at_most__d_tables_in_a_join
push esi
call fcn.0041e430
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test al, 0x20
mov eax, 1
push 0
cmovne ecx, eax
mov dword [esp + 0x34], ecx
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x24]
shl eax, 4
mov dword [esp + 0x48], eax
add eax, 0x2f7
and eax, 0xfffffff8
mov dword [esp + 0x54], eax
add eax, 0x48
push eax
call fcn.0041b6b0
mov ecx, dword [esp + 0x28]
add esp, 8
mov dword [esp + 0x10], eax
cmp byte [ecx + 0x49], 0
je 0x489a74
mov edx, eax
call fcn.0041b3e0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], esi
mov esi, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], edi
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], 0xffffffff
mov dword [eax + 0x18], 0xffffffff
mov byte [eax + 0x2e], cl
mov ecx, dword [esp + 0x2c]
call fcn.0043a310
mov ecx, dword [esp + 0x10]
xorps xmm0, xmm0
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov eax, dword [esp + 0x28]
mov word [ecx + 0x2c], ax
mov eax, dword [ebp + 0x18]
mov word [ecx + 0x14], ax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x84]
mov dword [ecx + 0x28], eax
mov eax, dword [esp + 0x44]
movups xmmword [ecx + 0x2f], xmm0
add eax, 0x48
movups xmmword [ecx + 0x3f], xmm0
push eax
mov byte [ecx + 0x4f], 0
add ecx, 0x2f0
push 0
push ecx
mov dword [esp + 0x64], ecx
call fcn.005b9c20
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [ecx + 0x1e8]
mov dword [esp + 0x68], ecx
lea eax, [ecx + 0x50]
add ecx, dword [esp + 0x50]
mov dword [esp + 0x40], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], ecx
lea eax, [ecx + 0x38]
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x30], eax
xor eax, eax
mov word [ecx + 0x28], ax
mov eax, 3
mov word [ecx + 0x2c], ax
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0x50]
mov dword [edx + 4], 0
mov dword [ecx], eax
mov edx, esi
lea eax, [ecx + 0x18]
mov dword [ecx + 4], 0
push 0x2c
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 8
mov dword [ecx + 0x14], eax
call fcn.004842c0
add esp, 4
cmp dword [esp + 0x30], 0
jne 0x489b9c
mov ecx, dword [esp + 0x10]
test edi, edi
je 0x489b88
mov al, byte [edi]
mov byte [ecx + 0x2f], al
test dword [esp + 0x28], 0x100
mov eax, dword [esp + 0x14]
je 0x489be0
mov byte [ecx + 0x33], 1
jmp 0x489be0
mov esi, dword [esp + 0x14]
xor edi, edi
add esi, 8
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x30]
push dword [esp + 0x40]
mov ecx, dword [edx + 0x1ec]
mov dword [edx + ecx*4 + 0x1f0], eax
inc dword [edx + 0x1ec]
mov edx, esi
mov ecx, dword [esp + 0x1c]
call fcn.004845e0
mov eax, dword [esp + 0x18]
inc edi
add esp, 4
add esi, 0x50
cmp edi, dword [eax]
jl 0x489ba5
mov edi, dword [ebp + 0xc]
mov esi, dword [esp + 0x40]
mov esi, dword [esi + 0xc]
sub esi, 1
js 0x489c09
mov edi, dword [esp + 0x40]
push esi
mov edx, edi
mov ecx, eax
call fcn.00483490
mov eax, dword [esp + 0x18]
add esp, 4
sub esi, 1
jns 0x489bf0
mov edi, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x49], 0
jne 0x489d7a
mov esi, dword [esp + 0x40]
cmp dword [esi + 0xc], 0
jle 0x489cda
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x1c], ecx
nop dword [eax]
mov esi, dword [esi + 0x14]
add esi, ecx
test byte [esi + 0xa], 2
jne 0x489cc2
mov eax, dword [esi + 0x28]
or eax, dword [esi + 0x2c]
jne 0x489cc2
cmp dword [esp + 0x30], eax
je 0x489ca2
mov edx, dword [esi]
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movq qword [esp + 0x90], xmm0
mov dword [esp + 0x98], eax
mov byte [esp + 0x94], 1
mov dword [esp + 0x84], 0x489960
mov dword [esp + 0x88], 0x44f660
test edx, edx
je 0x489ca2
lea ecx, [esp + 0x80]
call fcn.0044b1b0
cmp byte [esp + 0x94], 0
je 0x489cbe
mov eax, dword [esp + 0x10]
push 0x10
push dword [eax + 0x24]
push dword [esi]
push dword [esp + 0x24]
call fcn.00453d40
add esp, 0x10
or word [esi + 0xa], 4
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x40]
inc edi
add ecx, 0x30
mov dword [esp + 0x1c], ecx
cmp edi, dword [esi + 0xc]
jl 0x489c30
mov edi, dword [ebp + 0xc]
mov eax, dword [esp + 0x28]
mov esi, dword [ebp + 0x10]
and eax, 0x100
mov dword [esp + 0x60], eax
je 0x489d25
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 0x44]
call fcn.00484c90
add esp, 8
test eax, eax
je 0x489d0f
mov edi, dword [esp + 0x10]
mov byte [edi + 0x33], 1
jmp 0x489d29
test edi, edi
mov edi, dword [esp + 0x10]
jne 0x489d29
mov eax, 0x80
mov dword [edi + 8], esi
or word [edi + 0x2c], ax
jmp 0x489d29
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x30], 1
jne 0x489d3d
lea ecx, [esp + 0x68]
call fcn.004897a0
test eax, eax
jne 0x489d9e
lea ecx, [esp + 0x68]
call fcn.00488500
test eax, eax
jne 0x489d7a
xor edx, edx
mov ecx, edi
call fcn.00488ed0
mov ecx, dword [esp + 0x20]
cmp byte [ecx + 0x49], 0
jne 0x489d7a
cmp dword [edi + 8], 0
je 0x489da8
movzx edx, word [edi + 0x48]
mov ecx, edi
inc dx
call fcn.00488ed0
mov ecx, dword [esp + 0x20]
cmp byte [ecx + 0x49], 0
je 0x489da2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x84], eax
mov edx, ecx
mov ecx, dword [esp + 0x20]
call fcn.00485ee0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x20]
cmp dword [edi + 8], 0
jne 0x489dbf
test dword [ecx + 0x1c], 0x1000
je 0x489dbf
mov dword [edi + 0x40], 0xffffffff
mov dword [edi + 0x44], 0xffffffff
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x24], 0
jne 0x489d7a
cmp byte [ecx + 0x49], 0
jne 0x489d7a
cmp byte [edi + 0x2e], 2
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x4c], 0xffffffff
jb 0x489f93
test esi, esi
je 0x489f93
mov eax, 0x100
test word [ecx + 0x44], ax
jne 0x489f93
mov edx, esi
lea ecx, [edi + 0x1e8]
call fcn.00484540
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
test edx, edx
je 0x489e30
lea ecx, [edi + 0x1e8]
call fcn.00484540
or dword [esp + 0x1c], eax
or dword [esp + 0x38], edx
movzx esi, byte [edi + 0x2e]
dec esi
mov dword [esp + 0x34], esi
cmp esi, 1
jl 0x489f93
lea eax, [esi + esi*4]
shl eax, 4
add eax, 0x2f0
add eax, edi
mov dword [esp + 0x24], eax
mov edx, dword [eax + 0x40]
mov dword [esp + 0x54], edx
movzx eax, byte [edx + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
shl ecx, 4
add eax, ecx
mov dword [esp + 0x64], eax
test byte [eax + 0x2c], 8
je 0x489f7a
cmp word [esp + 0x60], 0
jne 0x489e8c
test dword [edx + 0x24], 0x1000
je 0x489f7a
mov eax, dword [edx + 8]
mov ecx, eax
mov edx, dword [edx + 0xc]
and ecx, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
mov eax, edx
and eax, dword [esp + 0x38]
or ecx, eax
mov dword [esp + 0x44], edx
jne 0x489f7a
mov eax, dword [esp + 0x6c]
mov edx, dword [eax + 0x14]
mov esi, edx
mov eax, dword [eax + 0xc]
lea edi, [eax + eax*2]
shl edi, 4
add edi, edx
cmp esi, edi
jae 0x489efa
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [esp + 0x50]
and eax, dword [esp + 0x44]
or ecx, eax
je 0x489eed
mov eax, dword [esi]
test byte [eax + 4], 1
je 0x489ef6
mov ecx, dword [esp + 0x64]
movsx eax, word [eax + 0x24]
cmp eax, dword [ecx + 0x38]
jne 0x489ef6
add esi, 0x30
cmp esi, edi
jb 0x489ec6
jmp 0x489efa
cmp esi, edi
jb 0x489f72
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
not eax
and dword [esp + 0x48], eax
not ecx
and dword [esp + 0x4c], ecx
cmp edx, edi
jae 0x489f32
mov esi, dword [esp + 0x54]
mov ecx, dword [edx + 0x28]
mov eax, dword [edx + 0x2c]
and ecx, dword [esi + 8]
and eax, dword [esi + 0xc]
or ecx, eax
je 0x489f2b
or word [edx + 0xa], 4
add edx, 0x30
cmp edx, edi
jb 0x489f16
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x34]
mov cl, byte [edi + 0x2e]
movzx edx, cl
lea eax, [edx - 1]
cmp esi, eax
je 0x489f67
mov ecx, dword [esp + 0x24]
sub edx, esi
lea eax, [edx + edx*4]
shl eax, 4
sub eax, 0x50
push eax
lea eax, [ecx + 0x50]
push eax
push ecx
call fcn.005b9df0
mov cl, byte [edi + 0x2e]
add esp, 0xc
dec cl
dec dword [esp + 0x30]
mov byte [edi + 0x2e], cl
jmp 0x489f7a
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
dec esi
sub eax, 0x50
mov dword [esp + 0x34], esi
mov dword [esp + 0x24], eax
cmp esi, 1
jge 0x489e53
mov ecx, dword [edi]
movsx eax, word [edi + 0x48]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], 0
add dword [ecx + 0x84], eax
test dl, 4
je 0x48a042
mov eax, dword [edi + 0x330]
mov ecx, dword [eax + 0x24]
test ecx, 0x1000
jne 0x489ff7
mov dword [esp + 0x24], 0
test dl, 8
je 0x48a042
mov dword [esp + 0x24], 0
test ecx, 0x400
jne 0x48a042
test ecx, 0x2000
je 0x489ff7
mov dword [esp + 0x24], 0
test dl, 0x10
je 0x48a042
mov edx, dword [esp + 0x14]
mov eax, ecx
and eax, 0x1000
mov dword [esp + 0x24], 0
neg eax
sbb al, al
add al, 2
mov byte [edi + 0x31], al
mov eax, dword [edx + 0x18]
test byte [eax + 0x24], 0x20
jne 0x48a046
mov dword [esp + 0x24], 0
test cl, 0x40
je 0x48a046
mov eax, dword [edi + 0x330]
and ecx, 0xffffffbf
mov dword [eax + 0x24], ecx
mov eax, dword [esp + 0x28]
and eax, 8
mov dword [esp + 0x24], eax
jmp 0x48a046
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
test ecx, ecx
jle 0x48a2ba
mov eax, dword [esp + 0x58]
add eax, 0x40
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], eax
movzx eax, byte [eax - 0x14]
mov edi, 0xfff0bdc0
lea eax, [eax + eax*4]
shl eax, 4
add edx, eax
mov dword [esp + 0x38], edx
mov esi, dword [edx + 0x18]
mov dword [esp + 0x58], esi
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x48a09c
mov eax, dword [esp + 0x20]
xor edi, edi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x48a09c
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x48a094
test byte [esi + 0x24], 2
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
jne 0x48a21d
cmp dword [esi + 0xc], 0
jne 0x48a21d
mov eax, dword [ecx + 0x24]
test eax, 0x400
je 0x48a0fb
mov eax, dword [esi + 0x40]
test eax, eax
je 0x48a0db
mov ecx, dword [esp + 0x20]
nop
cmp dword [eax], ecx
je 0x48a0db
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x48a0d0
mov ecx, dword [esp + 0x2c]
push 0xfffffffffffffff4
push eax
push 0
push 0
push dword [edx + 0x38]
mov edx, 0x9e
call fcn.0043a180
add esp, 0x14
jmp 0x48a219
cmp dword [esi + 0x38], 0
jne 0x48a21d
test al, 0x40
jne 0x48a204
test byte [esp + 0x28], 0x20
jne 0x48a204
mov edx, dword [esp + 0x10]
mov ecx, 0x6a
cmp byte [edx + 0x31], 0
je 0x48a136
mov eax, dword [esp + 0x38]
mov ecx, 0x6b
mov eax, dword [eax + 0x38]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
mov edx, dword [eax + 0x38]
push edi
call fcn.004668f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp byte [eax + 0x31], 0
jne 0x48a1f5
cmp word [esi + 0x2a], 0x40
jge 0x48a1f5
test byte [esi + 0x24], 0x20
jne 0x48a1f5
mov eax, dword [esp + 0x38]
xor esi, esi
mov edx, dword [eax + 0x48]
mov ecx, dword [eax + 0x4c]
mov eax, edx
or eax, ecx
je 0x48a18e
shrd edx, ecx, 1
inc esi
shr ecx, 1
mov eax, edx
or eax, ecx
jne 0x48a181
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx]
cmp byte [ecx + 0x49], 0
je 0x48a1b7
push esi
mov edx, 0xfffffffd
call fcn.0043a860
mov edx, dword [esp + 0x28]
add esp, 4
mov ecx, dword [esp + 0x2c]
call fcn.0043a690
jmp 0x48a219
mov eax, dword [edx + 0x88]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x58]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x48a1ee
mov ecx, dword [esp + 0x2c]
mov edx, eax
push 0xfffffffffffffffd
push esi
call fcn.0043a9f0
mov edx, dword [esp + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x2c]
call fcn.0043a690
jmp 0x48a219
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xfd
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
call fcn.0043a690
jmp 0x48a219
push dword [esi]
mov ecx, dword [esp + 0x1c]
mov edx, edi
push 0
push dword [esi + 0x1c]
call fcn.00457f80
add esp, 0xc
mov ecx, dword [esp + 0x1c]
test dword [ecx + 0x24], 0x200
je 0x48a264
mov eax, dword [esp + 0x58]
mov edx, 0x6a
mov esi, dword [ecx + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x54], esi
test byte [eax + 0x24], 0x20
je 0x48a39c
mov eax, dword [esi + 0x38]
and al, 3
cmp al, 2
jne 0x48a39c
test cl, 0x20
je 0x48a39c
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx - 0x3c]
mov dword [ecx - 0x38], eax
mov esi, dword [esp + 0x18]
test edi, edi
js 0x48a298
mov eax, dword [esi + 0x78]
mov edx, esi
test eax, eax
mov ecx, edi
cmovne edx, eax
mov eax, 1
shl eax, cl
mov esi, dword [edx + 0x5c]
test esi, eax
jne 0x48a298
bts esi, edi
mov dword [edx + 0x5c], esi
cmp edi, 1
jne 0x48a298
mov ecx, edx
call fcn.0045dde0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
add eax, 0x50
sub dword [esp + 0x44], 1
mov dword [esp + 0x34], eax
jne 0x48a061
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x88]
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x49], 0
jne 0x489d7a
xor edi, edi
test ecx, ecx
jle 0x48a469
mov esi, dword [esp + 0x10]
add esi, 0x31c
nop dword [eax]
mov eax, dword [esi + 0x14]
test dword [eax + 0x24], 0x4000
je 0x48a339
mov ecx, dword [esp + 0x14]
lea eax, [esi - 0x2c]
mov edx, dword [esp + 0x40]
add ecx, 8
push eax
movzx eax, byte [esi]
push dword [esp + 0x50]
push dword [esp + 0x50]
lea eax, [eax + eax*4]
shl eax, 4
add eax, ecx
mov ecx, dword [esp + 0x24]
push eax
call fcn.00484f80
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp byte [eax + 0x49], 0
jne 0x489d7a
push dword [esp + 0x28]
movzx eax, byte [esi]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
lea eax, [esi - 0x2c]
push edi
push eax
call fcn.0047f060
mov eax, dword [esp + 0x3c]
mov edx, edi
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x5c]
mov eax, dword [eax + 0x88]
mov dword [esi - 0xc], eax
call fcn.00480260
mov ecx, dword [esi - 0x14]
inc edi
mov dword [esp + 0x60], eax
add esp, 0x18
mov eax, dword [esp + 0x10]
add esi, 0x50
mov dword [esp + 0x4c], edx
mov dword [eax + 0x20], ecx
cmp edi, dword [esp + 0x30]
jl 0x48a2f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x31], 0
je 0x48a3d2
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x5c]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x48a3c4
cmp eax, esi
je 0x48a3c4
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x48a3b8
mov eax, dword [esp + 0x10]
mov edx, 0x6b
mov dword [eax + 0x1c], ecx
jmp 0x48a3f9
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x48a3e8
test cl, 0x20
je 0x48a3e8
mov ecx, eax
mov edx, 0x69
jmp 0x48a3fb
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x18]
mov ecx, dword [eax + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x28], eax
mov eax, ecx
mov esi, dword [esp + 0x34]
push edi
mov dword [esi - 0x38], eax
mov esi, dword [esp + 0x58]
push dword [esi + 0x2c]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00439d80
add esp, 0xc
mov edx, esi
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.0043ab90
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x24]
test al, 0xf
je 0x48a268
test eax, 0x8002
jne 0x48a268
mov eax, dword [esp + 0x10]
test byte [eax + 0x2c], 1
jne 0x48a268
cmp byte [eax + 0x33], 2
je 0x48a268
mov ecx, dword [esp + 0x2c]
mov edx, 2
call fcn.0043a690
jmp 0x48a268
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret