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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
xor eax, eax
mov dword [esp + 0x40], edx
push edi
mov esi, ecx
inc eax
xor ecx, ecx
mov dword [esp + 0x2c], eax
push 8
push ecx
lea eax, [esp + 0x78]
mov dword [esp + 0x70], esi
mov ebx, ecx
mov dword [esp + 0x3c], ecx
push eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x54], ecx
call fcn.006390b0
mov edi, dword [esi]
add esp, 0xc
mov dword [esp + 0x28], edi
cmp dword [esi + 0x24], ebx
jne 0x490dc9
mov edx, dword [esp + 0x44]
mov ecx, esi
call fcn.004902f2
mov ebx, eax
mov dword [esp + 0x6c], ebx
test ebx, ebx
je 0x490dc5
push 0
push 0
push 0x80
mov edx, ebx
mov ecx, esi
call fcn.004a72dc
mov ecx, eax
add esp, 0xc
mov al, byte [ebx + 0x2b]
mov dword [esp + 0x38], ecx
mov byte [esp + 0x1b], al
test ecx, ecx
jne 0x490607
push ecx
push ecx
mov edx, ebx
mov ecx, esi
call fcn.00494bf1
pop ecx
pop ecx
test eax, eax
jne 0x490607
and dword [esp + 0x20], eax
jmp 0x49060e
xor eax, eax
inc eax
mov dword [esp + 0x20], eax
mov edx, ebx
mov ecx, esi
call fcn.0048d0a4
test eax, eax
jne 0x490dc5
push dword [esp + 0x38]
mov edx, ebx
mov ecx, esi
call fcn.004903de
pop ecx
test eax, eax
jne 0x490dc5
mov edx, dword [ebx + 0x3c]
mov ecx, edi
call fcn.0049cfc4
mov ecx, eax
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x10]
add ecx, ecx
push dword [eax + ecx*8]
mov ecx, esi
push 0
push dword [ebx]
push 9
pop edx
call fcn.00489c13
xor ecx, ecx
mov dword [esp + 0x3c], eax
inc ecx
add esp, 0xc
cmp eax, ecx
je 0x490dc5
mov ecx, dword [esp + 0x44]
xor edx, edx
mov eax, dword [esi + 0x28]
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], edx
mov dword [ecx + 0x34], eax
mov ecx, dword [esi + 0x28]
inc ecx
mov dword [esi + 0x28], ecx
mov eax, dword [ebx + 8]
test eax, eax
je 0x49069f
inc ecx
inc edx
mov dword [esi + 0x28], ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x49068f
mov dword [esp + 0x4c], edx
cmp byte [esp + 0x1b], 2
jne 0x4906bc
mov ecx, dword [ebx]
mov eax, dword [esi + 0x104]
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], eax
mov dword [esi + 0x104], ecx
mov ecx, esi
call fcn.0049f9e0
mov edi, eax
test edi, edi
je 0x490dc1
cmp byte [esi + 0x12], 0
jne 0x4906da
or dword [edi + 0x98], 0x10
push dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov ecx, esi
call fcn.0048f579
cmp byte [esp + 0x1f], 2
pop ecx
jne 0x490714
push dword [esp + 0x24]
mov edx, ebx
mov ecx, esi
push 0
push 0
push dword [ebp + 8]
call fcn.0049045b
mov eax, dword [esp + 0x34]
add esp, 0x10
mov dword [esp + 0x60], eax
mov dword [esp + 0x34], eax
push 0x24
lea eax, [esp + 0x88]
push 0
push eax
call fcn.006390b0
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x90]
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], eax
call fcn.0047e93b
test eax, eax
jne 0x490dc1
mov ecx, dword [esp + 0x28]
inc eax
xor edx, edx
mov ecx, dword [ecx + 0x24]
and ecx, eax
mov eax, edx
or eax, ecx
je 0x490792
cmp byte [esi + 0x12], dl
jne 0x490792
cmp dword [esi + 0x84], edx
jne 0x490792
cmp byte [esi + 0x9f], dl
jne 0x490792
inc dword [esi + 0x2c]
mov ecx, edi
mov eax, dword [esi + 0x2c]
push edx
push eax
push edx
push 0x47
pop edx
mov dword [esp + 0x4c], eax
call fcn.0046e343
add esp, 0xc
mov ecx, dword [esp + 0x20]
xor eax, eax
inc eax
cmp dword [esp + 0x30], 0
jne 0x490854
cmp dword [ebp + 8], 0
jne 0x490854
test ecx, ecx
jne 0x490854
cmp byte [ebx + 0x2b], al
je 0x490854
push dword [ebx]
mov edx, dword [esp + 0x18]
inc ecx
push ecx
push dword [ebx + 0x14]
mov ecx, esi
call fcn.00489d48
add esp, 0xc
test byte [ebx + 0x1c], 0x80
jne 0x490801
mov ecx, dword [esp + 0x40]
or eax, 0xffffffff
push 0xffffffffffffffff
push dword [ebx]
test ecx, ecx
mov edx, 0x91
cmovne eax, ecx
mov ecx, edi
push eax
push dword [esp + 0x20]
push dword [ebx + 0x14]
call fcn.0046e4c2
add esp, 0x14
mov eax, dword [ebx + 8]
test eax, eax
je 0x490d8e
mov esi, eax
mov eax, dword [esi + 0x38]
and al, 3
cmp al, 2
jne 0x49082b
test byte [ebx + 0x1c], 0x80
je 0x49082b
mov ecx, dword [esp + 0x40]
or eax, 0xffffffff
test ecx, ecx
cmovne eax, ecx
jmp 0x49082d
xor eax, eax
push eax
push dword [esp + 0x18]
mov edx, 0x91
mov ecx, edi
push dword [esi + 0x2c]
call fcn.0046e343
mov esi, dword [esi + 0x14]
add esp, 0xc
test esi, esi
jne 0x49080e
mov esi, dword [esp + 0x68]
jmp 0x490d8e
test byte [esp + 0x9c], 0x40
push 0x1c
cmovne ecx, eax
pop eax
push 0x14
test ecx, ecx
pop edx
cmovne eax, edx
test byte [ebx + 0x1c], 0x80
movzx eax, ax
mov dword [esp + 0x30], eax
jne 0x49089a
mov eax, dword [esi + 0x2c]
xor ecx, ecx
push ecx
inc eax
mov dword [esp + 0x24], ecx
push eax
push ecx
push 0x4b
pop edx
mov ecx, edi
mov dword [esp + 0x68], eax
mov dword [esi + 0x2c], eax
call fcn.0046e343
add esp, 0xc
jmp 0x4908ec
mov ecx, ebx
call fcn.0048ac9d
mov dword [esp + 0x20], eax
push 0
movzx edx, word [eax + 0x32]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x30], edx
lea ecx, [eax + 1]
mov dword [esp + 0x54], ecx
movsx ecx, dx
mov edx, dword [esi + 0x28]
add eax, ecx
push ecx
push edx
mov dword [esi + 0x2c], eax
mov ecx, edi
lea eax, [edx + 1]
mov dword [esp + 0x48], edx
push 0x76
pop edx
mov dword [esi + 0x28], eax
call fcn.0046e343
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov ecx, esi
mov dword [esp + 0x48], eax
call fcn.0046ebe0
mov eax, dword [esp + 0x2c]
mov ecx, esi
mov edx, dword [esp + 0x44]
movzx eax, ax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
inc eax
push eax
push dword [esp + 0x34]
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 8]
call fcn.004b626e
add esp, 0x18
mov dword [esp + 0x30], eax
test eax, eax
je 0x490dc1
add eax, 0x14
push 8
push eax
lea eax, [esp + 0x84]
push eax
call fcn.00638b30
mov edx, dword [esp + 0x3c]
xor ecx, ecx
inc ecx
add esp, 0xc
mov al, byte [edx + 0x2e]
mov byte [esp + 0x13], al
mov byte [esp + 0x78], al
cmp al, cl
je 0x490965
mov eax, dword [esi + 0x80]
mov ecx, esi
test eax, eax
cmovne ecx, eax
xor eax, eax
inc eax
mov byte [ecx + 0x14], al
xor ecx, ecx
inc ecx
test byte [edx + 0x30], cl
je 0x490984
push 0
push 0
push dword [esp + 0x2c]
mov edx, 0x8f
mov ecx, edi
call fcn.0046e343
xor ecx, ecx
add esp, 0xc
inc ecx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x49099d
push 0
push ecx
push eax
push 0x56
pop edx
mov ecx, edi
call fcn.0046e343
add esp, 0xc
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
cwde
test ecx, ecx
je 0x4909f4
and dword [esp + 0x14], 0
test eax, eax
jle 0x4909ea
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x50]
mov edx, ebx
add eax, esi
push eax
mov eax, dword [ecx + 4]
mov ecx, edi
movsx eax, word [eax + esi*2]
push eax
push dword [esp + 0x2c]
call fcn.00482283
mov ecx, dword [esp + 0x60]
add esp, 0xc
movsx eax, cx
inc esi
mov ecx, dword [esp + 0x20]
cmp esi, eax
jl 0x4909b7
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
jmp 0x490a18
inc dword [esi + 0x2c]
mov edx, 0x87
mov eax, dword [esi + 0x2c]
mov ecx, edi
push 0
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x20], eax
call fcn.0046e343
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x490abe
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
movzx eax, ax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x4c]
add eax, 2
cdq
push edx
push eax
call fcn.004516f6
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x490a5b
mov ecx, dword [esp + 0x30]
call fcn.004b6d39
jmp 0x490dc1
mov eax, dword [esp + 0x4c]
inc eax
push eax
xor eax, eax
inc eax
push eax
push ecx
call fcn.006390b0
mov eax, dword [esp + 0x58]
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov byte [eax + edx + 1], 0
mov eax, dword [esp + 0x7c]
test eax, eax
js 0x490a8d
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x80]
test eax, eax
js 0x490a9e
sub eax, ecx
mov byte [eax + edx], 0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x490aaf
mov edx, eax
mov ecx, edi
call fcn.0046ea9d
dec dword [esi + 0x38]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x64], eax
jmp 0x490b54
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x490b2e
inc dword [esi + 0x2c]
and dword [esp + 0x2c], 0
mov edx, dword [ecx + 0x10]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
test edx, edx
jne 0x490aeb
mov edx, ecx
mov ecx, dword [esi]
call fcn.004954be
mov edx, eax
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x54]
movsx ecx, bx
mov ebx, dword [esp + 0x50]
push ecx
push edx
push eax
push ecx
push ebx
push 0x61
pop edx
mov ecx, edi
call fcn.0046e4c2
mov ecx, dword [esp + 0x68]
add esp, 0x14
movsx eax, cx
mov edx, 0x8a
mov ecx, edi
push eax
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x48]
call fcn.0046e39c
mov ebx, dword [esp + 0x7c]
add esp, 0x10
jmp 0x490b4b
xor ecx, ecx
mov edx, 0x9c
push 0
inc ecx
push eax
push dword [esp + 0x64]
mov dword [esp + 0x38], ecx
mov ecx, edi
call fcn.0046e343
add esp, 0xc
mov ecx, dword [esp + 0x30]
call fcn.004b6d39
cmp byte [esp + 0x1b], 2
je 0x490bb3
xor eax, eax
cmp byte [esp + 0x13], 2
mov dword [esp + 0x48], eax
jne 0x490b7c
push eax
push eax
push eax
push 0xf
pop edx
mov ecx, edi
call fcn.0046e343
add esp, 0xc
mov dword [esp + 0x48], eax
lea eax, [esp + 0x60]
mov edx, ebx
push eax
lea eax, [esp + 0x38]
mov ecx, esi
push eax
push dword [esp + 0x24]
push dword [esp + 0x30]
push 8
push 0x71
call fcn.00497c1c
mov al, byte [esp + 0x2b]
add esp, 0x18
cmp al, 2
jne 0x490bb7
mov edx, dword [esp + 0x48]
mov ecx, edi
call fcn.0046e942
jmp 0x490bbb
mov al, byte [esp + 0x13]
test al, al
je 0x490bfb
xor ecx, ecx
inc ecx
cmp byte [ebx + 0x2b], cl
mov ecx, dword [esp + 0x34]
je 0x490c72
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x24]
cmp byte [eax + ecx], 0
je 0x490c72
mov eax, dword [esp + 0x2c]
cwde
push eax
push dword [esp + 0x18]
push dword [esp + 0x6c]
push ecx
push 0x1c
pop edx
mov ecx, edi
call fcn.0046e39c
add esp, 0x10
jmp 0x490c6e
cmp dword [esp + 0x20], 0
mov ecx, edi
je 0x490c55
push 0
push 0
push dword [esp + 0x44]
push 0x24
pop edx
call fcn.0046e343
mov bl, byte [ebx + 0x2b]
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp bl, 1
mov dword [esp + 0x58], eax
cmovne ecx, edx
inc edx
push ecx
xor ecx, ecx
cmp bl, dl
cmovne ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x44]
xor ecx, ecx
push 0x5e
pop edx
inc ecx
cmp bl, cl
mov ecx, edi
lea eax, [edx + 0x28]
cmovne edx, eax
call fcn.0046e343
mov ebx, dword [esp + 0x78]
jmp 0x490c6b
push dword [esp + 0x14]
push 0
push dword [esp + 0x64]
push 0x2e
pop edx
call fcn.0046e343
mov dword [esp + 0x64], eax
add esp, 0xc
mov ecx, dword [esp + 0x34]
xor eax, eax
mov edx, ebx
inc eax
cmp byte [ebx + 0x2b], al
jne 0x490d00
mov ecx, dword [esp + 0x28]
call fcn.004aa839
mov ecx, esi
mov dword [esp + 0x38], eax
call fcn.004ab6aa
mov ecx, dword [esi + 0x80]
mov edx, esi
test ecx, ecx
cmovne edx, ecx
xor ebx, ebx
inc ebx
mov byte [edx + 0x15], bl
cmp byte [esp + 0x13], bl
jne 0x490ccf
push 0
push 0
push dword [esp + 0x2c]
mov ecx, edi
push 0x7a
pop edx
call fcn.0046e343
add esp, 0xc
cmp dword [esi + 0x80], 0
jne 0x490ccf
mov byte [esi + 0x14], 0
push dword [esp + 0x14]
mov ecx, edi
push ebx
push 0
push 7
pop edx
call fcn.0046e343
add esp, 0xc
mov edx, eax
mov ecx, edi
push 0xfffffffffffffff5
push dword [esp + 0x3c]
call fcn.0046eb3d
pop ecx
pop ecx
push 2
pop edx
mov ecx, edi
call fcn.0046e90c
jmp 0x490d33
push dword [esp + 0x80]
cmp byte [esi + 0x12], 0
push dword [esp + 0x7c]
sete al
push 0xb
movzx eax, al
push eax
push dword [esp + 0x3c]
push dword [esp + 0x28]
push dword [esp + 0x78]
push ecx
push dword [esp + 0x58]
mov ecx, esi
call fcn.00490e0f
add esp, 0x24
cmp byte [esp + 0x13], 0
mov ecx, edi
je 0x490d50
mov edx, dword [esp + 0x64]
call fcn.0046e744
mov ecx, dword [esp + 0x30]
call fcn.004b6d39
jmp 0x490d8e
cmp dword [esp + 0x20], 0
je 0x490d74
mov ebx, dword [esp + 0x58]
push 0
lea eax, [ebx + 1]
push eax
push dword [esp + 0x44]
push 0x27
pop edx
call fcn.0046e343
add esp, 0xc
mov edx, ebx
jmp 0x490d81
mov edx, dword [esp + 0x58]
call fcn.0046e3f7
mov edx, dword [esp + 0x58]
mov ecx, edi
call fcn.0046ebfb
mov ecx, dword [edi + 0x6c]
mov dword [eax + 8], ecx
cmp byte [esi + 0x12], 0
jne 0x490daa
cmp dword [esi + 0x84], 0
jne 0x490daa
cmp dword [esi + 0x7c], 0
je 0x490daa
mov ecx, esi
call fcn.00495a52
mov eax, dword [esp + 0x40]
test eax, eax
je 0x490dc1
push str.rows_deleted
mov edx, eax
mov ecx, edi
call fcn.00490340
pop ecx
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x490de0
mov eax, dword [esp + 0x70]
mov dword [ecx + 0x104], eax
and dword [esp + 0x74], 0
mov edx, dword [esp + 0x44]
mov ecx, edi
call fcn.0048efde
cmp dword [ebp + 8], 0
je 0x490dfb
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.0047fc48
test ebx, ebx
je 0x490e08
mov edx, ebx
mov ecx, edi
call fcn.00451464
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret