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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
mov eax, dword [0x517748]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
mov esi, ecx
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x78], eax
cmp dword [esi + 0x24], 0
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esi]
push edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0xffffffff
movq qword [esp + 0x80], xmm0
mov dword [esp + 0x28], eax
jne 0x48a16d
cmp byte [eax + 0x45], 0
jne 0x48a16d
call fcn.004893f0
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x48a16d
push 0
push 0
push 0x6d
mov edx, edi
mov ecx, esi
call fcn.004a5dc0
xor ecx, ecx
mov dword [esp + 0x54], eax
add esp, 0xc
cmp dword [edi + 0xc], ecx
setne cl
mov dword [esp + 0x30], ecx
test eax, eax
jne 0x48977c
mov eax, dword [esi]
test dword [eax + 0x18], 0x80000
je 0x489772
push 0
xor edx, edx
mov ecx, edi
call fcn.0048f8e0
add esp, 4
test eax, eax
jne 0x48977c
mov dword [esp + 0x4c], 0
jmp 0x489784
mov dword [esp + 0x4c], 1
mov edx, edi
mov ecx, esi
call fcn.00484a90
test eax, eax
jne 0x48a16d
cmp dword [esp + 0x48], eax
mov edx, edi
mov ecx, esi
setne al
push eax
call fcn.00489490
add esp, 4
test eax, eax
jne 0x48a16d
mov ecx, dword [esp + 0x28]
mov edx, dword [edi + 0x40]
call fcn.00498d00
mov ecx, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
add ecx, ecx
mov edx, 9
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
mov ecx, esi
push 0
push dword [edi]
call fcn.00481720
add esp, 0xc
mov dword [esp + 0x40], eax
cmp eax, 1
je 0x48a16d
mov ecx, dword [esp + 0x70]
xor edx, edx
mov eax, dword [esi + 0x28]
mov dword [esp + 0x24], eax
mov dword [esp + 0x78], edx
mov dword [ecx + 0x38], eax
inc dword [esi + 0x28]
mov eax, dword [edi + 8]
mov ecx, dword [esi + 0x28]
test eax, eax
je 0x489820
inc ecx
inc edx
mov dword [esi + 0x28], ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x489810
mov dword [esp + 0x78], edx
cmp dword [esp + 0x30], 0
je 0x48983f
mov eax, dword [esi + 0x1c0]
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
mov dword [esp + 0x20], esi
mov dword [esi + 0x1c0], eax
jmp 0x489855
mov eax, dword [esp + 0x84]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x1c], eax
mov edi, dword [esi + 8]
test edi, edi
jne 0x48986d
mov ecx, esi
call fcn.0049c800
mov edi, eax
test edi, edi
je 0x489c5b
cmp byte [esi + 0x12], 0
jne 0x48987a
or dword [edi + 0x90], 0x10
push dword [esp + 0x14]
mov edx, 1
mov ecx, esi
call fcn.00487d50
add esp, 4
cmp dword [esp + 0x30], 0
je 0x4898bc
push dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov ecx, esi
push dword [esp + 0x68]
call fcn.00489520
mov ecx, dword [esp + 0x2c]
add esp, 8
mov eax, ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x90]
mov edx, dword [esp + 0x64]
xorps xmm0, xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0xa0], xmm0
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], eax
call fcn.004751b0
test eax, eax
jne 0x489c5b
mov eax, dword [esp + 0x28]
test byte [eax + 0x18], 0x80
je 0x489921
inc dword [esi + 0x2c]
mov edx, 0x4c
mov eax, dword [esi + 0x2c]
mov ecx, edi
push eax
push 0
mov dword [esp + 0x60], eax
call fcn.00460df0
add esp, 8
cmp dword [esp + 0x40], 0
mov ecx, dword [esp + 0x4c]
jne 0x489a73
cmp dword [esp + 0x64], 0
jne 0x489a73
test ecx, ecx
jne 0x489a73
mov eax, dword [esp + 0x10]
test byte [eax + 0x2a], 0x10
jne 0x489a73
push dword [eax]
mov edx, dword [esp + 0x18]
mov ecx, esi
push 1
push dword [eax + 0x1c]
call fcn.004817b0
mov edx, dword [esp + 0x1c]
add esp, 0xc
test byte [edx + 0x2a], 0x20
jne 0x489a40
mov eax, dword [edx]
mov ecx, dword [edx + 0x1c]
mov edx, dword [edi + 0x88]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x48], ecx
cmp dword [eax + 0x30], edx
jg 0x4899ab
push dword [esp + 0x58]
mov edx, 0x83
push dword [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00460c40
add esp, 0xc
mov edx, eax
jmp 0x4899e9
mov esi, dword [esp + 0x48]
lea eax, [edx + 1]
mov dword [edi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [esp + 0x3c]
mov word [eax + ecx*4], 0x83
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi]
cmp byte [ecx + 0x45], 0
je 0x489a05
mov edx, dword [esp + 0x30]
push edx
mov edx, 0xfffffffe
call fcn.004618a0
add esp, 4
jmp 0x489a40
test edx, edx
jns 0x489a10
mov edx, dword [edi + 0x88]
dec edx
mov eax, dword [edi + 0x58]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov edx, dword [esp + 0x30]
je 0x489a35
push 0xfffffffffffffffe
push edx
mov edx, eax
mov ecx, edi
call fcn.00461a90
add esp, 8
jmp 0x489a40
test edx, edx
je 0x489a40
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xfe
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x48a0f4
mov esi, eax
push dword [esp + 0x14]
mov edx, 0x83
mov ecx, edi
push dword [esi + 0x2c]
call fcn.00460df0
mov esi, dword [esi + 0x14]
add esp, 8
test esi, esi
jne 0x489a51
jmp 0x48a0f0
test byte [esp + 0xac], 0x40
mov eax, 1
cmovne ecx, eax
xor edx, edx
test ecx, ecx
mov dword [esp + 0x4c], ecx
mov eax, 8
mov ecx, 0x414
cmovne eax, edx
or ax, cx
movzx eax, ax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
test byte [eax + 0x2a], 0x20
jne 0x489ad5
inc dword [esi + 0x2c]
mov ecx, edi
mov eax, dword [esi + 0x2c]
push eax
mov dword [esp + 0x30], edx
push edx
mov edx, 0x4f
mov dword [esp + 0x64], 1
mov dword [esp + 0x4c], eax
call fcn.00460df0
add esp, 8
jmp 0x489b27
mov ecx, eax
call fcn.00482bc0
mov dword [esp + 0x2c], eax
movzx ecx, word [eax + 0x32]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x5c], ecx
movsx ecx, cx
push ecx
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x78], edx
mov ecx, edi
mov edx, dword [esi + 0x28]
mov dword [esi + 0x2c], eax
mov dword [esp + 0x6c], edx
push edx
lea eax, [edx + 1]
mov edx, 0x6b
mov dword [esi + 0x28], eax
call fcn.00460df0
mov edx, dword [esp + 0x34]
add esp, 8
mov ecx, esi
mov dword [esp + 0x60], eax
call fcn.00461c00
mov eax, dword [esp + 0x24]
mov ecx, esi
mov edx, dword [esp + 0x70]
inc eax
push eax
push dword [esp + 0x44]
push 0
push 0
push dword [esp + 0x74]
call fcn.004b5540
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x489c5b
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x88], eax
movzx eax, byte [ecx + 0x2d]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
test byte [eax + 0x18], 0x80
je 0x489b90
push 1
push dword [esp + 0x5c]
mov edx, 0x5b
mov ecx, edi
call fcn.00460df0
add esp, 8
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x489bf5
mov eax, dword [esp + 0x5c]
xor ecx, ecx
cwde
mov dword [esp + 0x38], ecx
test eax, eax
jle 0x489beb
mov esi, dword [esp + 0x10]
jmp 0x489bb0
mov eax, dword [esp + 0x74]
add eax, ecx
push eax
mov eax, dword [edx + 4]
mov edx, esi
movsx eax, word [eax + ecx*2]
mov ecx, edi
push eax
push dword [esp + 0x2c]
call fcn.0047af10
mov ecx, dword [esp + 0x44]
add esp, 0xc
mov edx, dword [esp + 0x5c]
inc ecx
movsx eax, dx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
cmp ecx, eax
jl 0x489bb0
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x18], eax
jmp 0x489c1c
mov eax, dword [esi + 0x2c]
mov ecx, esi
mov edx, dword [esp + 0x10]
inc eax
push 0
push eax
push dword [esp + 0x2c]
push 0xffffffffffffffff
call fcn.0047b010
add esp, 0x10
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x2c]
jle 0x489c1c
mov dword [esi + 0x2c], eax
cmp dword [esp + 0x14], 0
je 0x489d36
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x28]
movzx eax, ax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x78]
add eax, 2
cdq
push edx
push eax
call fcn.00441d50
mov ecx, eax
add esp, 8
mov dword [esp + 0x6c], ecx
test ecx, ecx
jne 0x489ccb
mov ecx, dword [esp + 0x40]
call fcn.004b5fe0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x489c6d
mov dword [eax + 0x1c0], ecx
mov esi, dword [esp + 0x28]
mov ecx, esi
mov edx, dword [esp + 0x70]
call fcn.00487500
mov eax, dword [esp + 0x64]
test eax, eax
je 0x489c8d
mov edx, eax
mov ecx, esi
call fcn.00476a50
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x48a1c1
test esi, esi
je 0x48a1b8
cmp dword [esi + 0x1c8], 0
je 0x48a180
mov edx, ecx
mov ecx, esi
call fcn.00441a40
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004c0564
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x78]
inc eax
push eax
push 1
push ecx
call fcn.004c6800
mov eax, dword [esp + 0x84]
add esp, 0xc
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x24]
mov byte [eax + edx + 1], 0
mov eax, dword [esp + 0x80]
test eax, eax
js 0x489d01
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x88]
test eax, eax
js 0x489d12
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x489d23
mov edx, eax
mov ecx, edi
call fcn.00461a40
mov ecx, edi
call fcn.00461350
mov dword [esp + 0x8c], eax
jmp 0x489dc4
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x489d9f
inc dword [esi + 0x2c]
mov edx, ecx
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x5c]
movsx esi, ax
push esi
push ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x40], 0
mov ecx, dword [ecx]
call fcn.004905d0
add esp, 4
mov edx, 0x63
mov ecx, edi
push eax
push dword [esp + 0x20]
push esi
push dword [esp + 0x84]
call fcn.00461100
add esp, 0x14
mov edx, 0x7e
mov ecx, edi
push dword [esp + 0x18]
push dword [esp + 0x6c]
call fcn.00460df0
mov esi, dword [esp + 0x44]
jmp 0x489db8
push eax
push dword [esp + 0x48]
mov edx, 0x8e
mov dword [esp + 0x40], 1
mov ecx, edi
call fcn.00460df0
mov ecx, dword [esp + 0x48]
add esp, 8
call fcn.004b5fe0
cmp dword [esp + 0x30], 0
jne 0x489e32
cmp dword [esp + 0x14], 2
mov dword [esp + 0x60], 0
jne 0x489dea
mov edx, 0x14
mov ecx, edi
call fcn.00460d00
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x54]
mov ecx, esi
push eax
push dword [esp + 0x74]
push dword [esp + 0x30]
push 8
push 0x69
call fcn.004939c0
add esp, 0x18
cmp dword [esp + 0x14], 2
jne 0x489e2a
mov edx, dword [esp + 0x60]
mov ecx, edi
call fcn.004616c0
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x34], eax
jmp 0x489e39
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x14], 0
je 0x489e7c
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x2a], 0x10
jne 0x489edc
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
cmp byte [eax + edx], 0
je 0x489ed2
mov eax, dword [esp + 0x38]
mov ecx, edi
cwde
push eax
push dword [esp + 0x1c]
push dword [esp + 0x94]
push edx
mov edx, 0x1e
call fcn.00461240
add esp, 0x10
jmp 0x489ece
cmp dword [esp + 0x2c], 0
mov ecx, edi
je 0x489eb3
push dword [esp + 0x68]
mov edx, 0x39
call fcn.00460d70
add esp, 4
mov dword [esp + 0x54], eax
mov edx, 0x79
mov ecx, edi
push dword [esp + 0x18]
push dword [esp + 0x6c]
call fcn.00460df0
add esp, 8
jmp 0x489ece
push dword [esp + 0x18]
mov edx, 0x3e
push 0
push dword [esp + 0x4c]
call fcn.00460c80
add esp, 0xc
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x2a], 0x10
je 0x489fe1
mov eax, dword [ecx + 0x38]
mov dword [esp + 0x44], eax
test eax, eax
je 0x489eff
mov edx, dword [esp + 0x28]
jmp 0x489ef0
cmp dword [eax], edx
je 0x489efb
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x489ef0
mov dword [esp + 0x44], eax
mov edx, ecx
mov ecx, esi
call fcn.004aaa30
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x88]
cmp dword [eax + 0x30], edx
jg 0x489f31
push dword [esp + 0x18]
mov edx, 0xc
mov ecx, edi
push 1
push 0
call fcn.00460c40
add esp, 0xc
mov edx, eax
jmp 0x489f6f
mov esi, dword [esp + 0x18]
lea eax, [edx + 1]
mov dword [edi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x58]
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [esp + 0x3c]
mov word [eax + ecx*4], 0xc
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
jne 0x489fb5
test edx, edx
jns 0x489f82
mov edx, dword [edi + 0x88]
dec edx
mov eax, dword [edi + 0x58]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x44]
je 0x489fa7
push 0xfffffffffffffff6
mov edx, ecx
mov ecx, edi
push eax
call fcn.00461a90
add esp, 8
jmp 0x489fb5
test eax, eax
je 0x489fb5
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xf6
inc dword [eax + 0xc]
mov dl, 2
mov ecx, edi
call fcn.004616a0
mov eax, dword [esi + 0x7c]
mov ecx, esi
test eax, eax
cmovne ecx, eax
mov eax, dword [esp + 0x14]
mov byte [ecx + 0x15], 1
cmp eax, 1
jne 0x48a036
cmp dword [esi + 0x7c], 0
jne 0x48a03a
mov byte [esi + 0x14], 0
jmp 0x48a03a
xor edx, edx
cmp byte [esi + 0x12], dl
sete dl
or eax, 0xffffffff
cmp dword [esp + 0x4c], 0
jne 0x48a00a
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x10]
cmovne eax, dword [esp + 0x88]
push eax
push dword [esp + 0x18]
push 0xa
push edx
push dword [esp + 0x48]
mov edx, ecx
mov ecx, esi
push dword [esp + 0x2c]
push dword [esp + 0x4c]
push dword [esp + 0x6c]
push dword [esp + 0x68]
call fcn.0048a1e0
mov eax, dword [esp + 0x38]
add esp, 0x24
test eax, eax
je 0x48a053
mov edx, dword [esp + 0x8c]
mov ecx, edi
call fcn.004613a0
mov ecx, dword [esp + 0x40]
call fcn.004b5fe0
jmp 0x48a089
cmp dword [esp + 0x2c], 0
mov ecx, edi
je 0x48a075
mov eax, dword [esp + 0x54]
mov edx, 7
inc eax
push eax
push dword [esp + 0x6c]
call fcn.00460df0
add esp, 8
jmp 0x48a07e
mov edx, dword [esp + 0x54]
call fcn.00460e70
mov edx, dword [esp + 0x54]
mov ecx, edi
call fcn.004616c0
cmp dword [esp + 0x30], 0
jne 0x48a0f4
mov eax, dword [esp + 0x10]
test byte [eax + 0x2a], 0x10
jne 0x48a0f4
cmp dword [esp + 0x2c], 0
jne 0x48a0b8
push dword [esp + 0x50]
mov edx, 0x6f
mov ecx, edi
call fcn.00460d70
mov eax, dword [esp + 0x14]
add esp, 4
mov eax, dword [eax + 8]
mov dword [esp + 0x80], eax
test eax, eax
je 0x48a0f4
mov esi, eax
mov eax, dword [esp + 0x34]
lea esp, [esp]
push eax
mov edx, 0x6f
mov ecx, edi
call fcn.00460d70
mov eax, dword [esp + 0x38]
add esp, 4
mov esi, dword [esi + 0x14]
inc eax
mov dword [esp + 0x34], eax
test esi, esi
jne 0x48a0d0
mov esi, dword [esp + 0x3c]
cmp byte [esi + 0x12], 0
jne 0x48a110
cmp dword [esi + 0x80], 0
jne 0x48a110
cmp dword [esi + 0x78], 0
je 0x48a110
mov ecx, esi
call fcn.00490a30
mov eax, dword [esp + 0x28]
test byte [eax + 0x18], 0x80
je 0x489c5b
cmp byte [esi + 0x12], 0
jne 0x489c5b
cmp dword [esi + 0x80], 0
jne 0x489c5b
push 1
push dword [esp + 0x5c]
mov edx, 0x57
mov ecx, edi
call fcn.00460df0
mov edx, 1
mov ecx, edi
call fcn.00462ca0
push 0
push str.rows_deleted
push 0
xor edx, edx
mov ecx, edi
call fcn.00462d60
add esp, 0x14
jmp 0x489c5b
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
jmp 0x489c63
cmp ecx, dword [esi + 0x120]
jb 0x48a1b8
cmp ecx, dword [esi + 0x124]
jae 0x48a1b8
mov eax, dword [esi + 0x11c]
mov dword [ecx], eax
dec dword [esi + 0x108]
mov dword [esi + 0x11c], ecx
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004c0564
mov esp, ebp
pop ebp
ret
push ecx
call fcn.004419d0
add esp, 4
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
xor ecx, esp
call fcn.004c0564
mov esp, ebp
pop ebp
ret