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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x519008]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [esp + 0x40], eax
push edi
mov edi, ecx
mov dword [esp + 0x40], edx
xor eax, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x60], 0
mov ebx, dword [edi]
mov dword [esp + 0x54], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x3c], ebx
cmp dword [edi + 0x24], eax
jne 0x49928d
cmp byte [ebx + 0x51], al
jne 0x49928d
call fcn.00499600
mov esi, eax
mov dword [esp + 0x6c], esi
test esi, esi
je 0x49928b
push 0
push 0
push 0x79
mov edx, esi
mov ecx, edi
call fcn.0047b380
mov ecx, eax
add esp, 0xc
mov eax, dword [esi + 0xc]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x58], eax
test ecx, ecx
jne 0x498ac2
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, ecx
je 0x498ab8
mov ecx, dword [esi + 0x48]
mov edx, dword [esi]
add ecx, 0x38
push 0
call fcn.004e80e0
add esp, 4
cmp dword [eax + 8], 0
jne 0x498ac2
cmp dword [esi + 0x10], 0
jne 0x498ac2
mov dword [esp + 0x14], 0
jmp 0x498aca
mov dword [esp + 0x14], 1
mov edx, esi
mov ecx, edi
call fcn.0049e3b0
test eax, eax
jne 0x49928b
cmp dword [esp + 0x70], eax
mov edx, esi
mov ecx, edi
setne al
push eax
call fcn.00499490
add esp, 4
test eax, eax
jne 0x49928b
mov edx, dword [esi + 0x48]
mov ecx, ebx
call fcn.00488870
mov ecx, eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x10]
add ecx, ecx
mov edx, 9
push dword [eax + ecx*8]
mov ecx, edi
push 0
push dword [esi]
call fcn.004a2880
add esp, 0xc
mov dword [esp + 0x34], eax
cmp eax, 1
je 0x49928b
mov ecx, dword [esp + 0x40]
xor edx, edx
mov eax, dword [edi + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4c], edx
mov dword [ecx + 0x34], eax
inc dword [edi + 0x28]
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0x28]
test eax, eax
je 0x498b60
inc ecx
inc edx
mov dword [edi + 0x28], ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x498b50
mov dword [esp + 0x4c], edx
cmp dword [esp + 0x58], 0
je 0x498b7d
mov eax, dword [edi + 0xf0]
mov dword [esp + 0x78], eax
mov eax, dword [esi]
mov dword [esp + 0x74], edi
mov dword [edi + 0xf0], eax
mov ebx, dword [edi + 8]
test ebx, ebx
jne 0x498ba6
cmp dword [edi + 0x74], ebx
jne 0x498b95
mov eax, dword [edi]
test byte [eax + 0x4c], 8
jne 0x498b95
mov byte [edi + 0x17], 1
mov ecx, edi
call fcn.004c8600
mov ebx, eax
test ebx, ebx
je 0x49926f
cmp byte [edi + 0x12], 0
jne 0x498bb3
or dword [ebx + 0x98], 0x20
push dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.0049b120
add esp, 4
cmp dword [esp + 0x58], 0
je 0x498bf0
push dword [esp + 0x1c]
mov edx, esi
mov ecx, edi
push 0
push 0
push dword [esp + 0x50]
call fcn.00499330
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov dword [esp + 0x60], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x84]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], eax
call fcn.004b1320
test eax, eax
jne 0x49926f
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
and eax, 0x80
or eax, 0
je 0x498c95
cmp byte [edi + 0x12], 0
jne 0x498c95
cmp dword [edi + 0x78], 0
jne 0x498c95
inc dword [edi + 0x2c]
mov edx, 0x46
mov eax, dword [edi + 0x2c]
mov ecx, ebx
push eax
push 0
mov dword [esp + 0x5c], eax
call fcn.004c8180
add esp, 8
cmp dword [esp + 0x34], 0
mov ecx, dword [esp + 0x14]
jne 0x498d27
cmp dword [esp + 0x44], 0
jne 0x498d27
test ecx, ecx
jne 0x498d27
cmp dword [esi + 0x38], ecx
jne 0x498d27
push dword [esi]
mov edx, dword [esp + 0x24]
mov ecx, edi
push 1
push dword [esi + 0x1c]
call fcn.004a2730
add esp, 0xc
test byte [esi + 0x24], 0x20
jne 0x498cf5
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x498cda
or eax, 0xffffffff
push 0xffffffffffffffff
push dword [esi]
mov edx, 0x89
mov ecx, ebx
push eax
push dword [esp + 0x2c]
push dword [esi + 0x1c]
call fcn.004c7e30
add esp, 0x14
mov esi, dword [esi + 8]
test esi, esi
je 0x49921e
mov edi, dword [esp + 0x20]
push edi
push dword [esi + 0x2c]
mov edx, 0x89
mov ecx, ebx
call fcn.004c8180
mov esi, dword [esi + 0x14]
add esp, 8
test esi, esi
jne 0x498d04
mov edi, dword [esp + 0x28]
jmp 0x49921e
test byte [esp + 0x9c], 0x40
je 0x498d36
mov ecx, 1
xor eax, eax
test ecx, ecx
sete al
test byte [esi + 0x24], 0x20
lea eax, [eax*8 + 0x414]
movzx eax, ax
mov dword [esp + 0x34], eax
jne 0x498d7f
inc dword [edi + 0x2c]
mov edx, 0x49
mov eax, dword [edi + 0x2c]
mov ecx, ebx
push eax
push 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x64], eax
call fcn.004c8180
add esp, 8
jmp 0x498dd1
mov ecx, esi
call fcn.004a0930
mov dword [esp + 0x14], eax
movzx ecx, word [eax + 0x32]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x20], ecx
movsx ecx, cx
push ecx
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x3c], edx
mov ecx, ebx
mov edx, dword [edi + 0x28]
mov dword [edi + 0x2c], eax
mov dword [esp + 0x30], edx
push edx
lea eax, [edx + 1]
mov edx, 0x71
mov dword [edi + 0x28], eax
call fcn.004c8180
mov edx, dword [esp + 0x1c]
add esp, 8
mov ecx, edi
mov dword [esp + 0x48], eax
call fcn.004c70d0
mov eax, dword [esp + 0x1c]
mov ecx, edi
mov edx, dword [esp + 0x40]
inc eax
push eax
push dword [esp + 0x38]
push 0
push 0
push dword [esp + 0x54]
call fcn.00468310
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x68], ecx
test ecx, ecx
je 0x49926f
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x34], eax
mov al, byte [ecx + 0x31]
mov byte [esp + 0x13], al
mov byte [esp + 0x80], al
cmp al, 1
je 0x498e2c
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x498e28
mov eax, edi
mov byte [eax + 0x14], 1
mov eax, dword [esp + 0x54]
test eax, eax
je 0x498e46
push 1
push eax
mov edx, 0x53
mov ecx, ebx
call fcn.004c8180
add esp, 8
mov edx, dword [esp + 0x14]
test edx, edx
je 0x498e9d
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ax, cx
jge 0x498e93
xor edi, edi
jmp 0x498e60
mov eax, dword [esp + 0x38]
mov ecx, ebx
add eax, edi
push eax
mov eax, dword [edx + 4]
mov edx, esi
movsx eax, word [eax + edi*2]
push eax
push dword [esp + 0x24]
call fcn.004aaf90
mov ecx, dword [esp + 0x2c]
inc edi
mov edx, dword [esp + 0x20]
add esp, 0xc
movsx eax, cx
cmp edi, eax
jl 0x498e60
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
jmp 0x498ebe
inc dword [edi + 0x2c]
mov edx, esi
mov eax, dword [edi + 0x2c]
mov ecx, ebx
push eax
push 0xffffffffffffffff
push dword [esp + 0x24]
mov dword [esp + 0x24], eax
call fcn.004aaf90
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x498f60
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
movzx eax, ax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
add eax, 2
cdq
push edx
push eax
call fcn.004ece50
mov ecx, eax
add esp, 8
mov dword [esp + 0x30], ecx
test ecx, ecx
jne 0x498f02
mov ecx, dword [esp + 0x68]
call fcn.00467a10
jmp 0x49926f
mov eax, dword [esp + 0x4c]
inc eax
push eax
push 1
push ecx
call fcn.00405490
mov eax, dword [esp + 0x58]
add esp, 0xc
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov byte [eax + ecx + 1], 0
mov eax, dword [esp + 0x7c]
test eax, eax
js 0x498f32
sub eax, edx
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x34]
test eax, eax
js 0x498f40
sub eax, edx
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x498f51
mov edx, eax
mov ecx, ebx
call fcn.004c7300
dec dword [edi + 0x38]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x64], eax
jmp 0x498fef
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x498fca
inc dword [edi + 0x2c]
mov edx, ecx
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
movsx esi, ax
push esi
push ecx
mov ecx, dword [edi]
mov dword [esp + 0x30], 0
call fcn.00491620
add esp, 4
mov edx, 0x5c
mov ecx, ebx
push eax
push dword [esp + 0x20]
push esi
push dword [esp + 0x48]
call fcn.004c7e30
add esp, 0x14
mov edx, 0x84
mov ecx, ebx
push esi
push dword [esp + 0x3c]
push dword [esp + 0x20]
push dword [esp + 0x38]
call fcn.004c7b60
mov esi, dword [esp + 0x7c]
add esp, 0x10
jmp 0x498fe6
push eax
push dword [esp + 0x60]
mov edx, 0x94
mov dword [esp + 0x30], 1
mov ecx, ebx
call fcn.004c8180
add esp, 8
mov ecx, dword [esp + 0x68]
call fcn.00467a10
cmp dword [esp + 0x58], 0
jne 0x49904c
cmp byte [esp + 0x13], 2
mov dword [esp + 0x48], 0
jne 0x499015
mov edx, 0x11
mov ecx, ebx
call fcn.004c8250
mov dword [esp + 0x48], eax
lea eax, [esp + 0x60]
mov edx, esi
push eax
lea eax, [esp + 0x28]
mov ecx, edi
push eax
push dword [esp + 0x38]
push dword [esp + 0x28]
push 8
push 0x6d
call fcn.0048dde0
mov al, byte [esp + 0x2b]
add esp, 0x18
cmp al, 2
jne 0x499050
mov edx, dword [esp + 0x48]
mov ecx, ebx
call fcn.004c7670
jmp 0x499054
mov al, byte [esp + 0x13]
test al, al
je 0x499094
cmp dword [esi + 0x38], 0
mov ecx, dword [esp + 0x24]
jne 0x49910c
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x1c]
cmp byte [eax + ecx], 0
je 0x499102
mov eax, dword [esp + 0x28]
mov edx, 0x1c
cwde
push eax
push dword [esp + 0x1c]
push dword [esp + 0x6c]
push ecx
mov ecx, ebx
call fcn.004c7b60
add esp, 0x10
jmp 0x4990fe
cmp dword [esp + 0x14], 0
mov ecx, ebx
je 0x4990e3
push dword [esp + 0x2c]
mov edx, 0x24
call fcn.004c81f0
add esp, 4
mov dword [esp + 0x50], eax
cmp dword [esi + 0x38], 0
mov ecx, ebx
push dword [esp + 0x18]
je 0x4990d0
push 0
push dword [esp + 0x34]
mov edx, 0x5a
call fcn.004c82b0
jmp 0x4990fb
push dword [esp + 0x30]
mov edx, 0x7f
call fcn.004c8180
add esp, 8
jmp 0x4990fe
push dword [esp + 0x18]
mov edx, 0x29
push 0
push dword [esp + 0x64]
call fcn.004c82b0
mov dword [esp + 0x5c], eax
add esp, 0xc
mov ecx, dword [esp + 0x24]
cmp dword [esi + 0x38], 0
je 0x499191
mov esi, dword [esi + 0x40]
test esi, esi
je 0x499122
mov eax, dword [esp + 0x3c]
cmp dword [esi], eax
je 0x499122
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x499117
mov edx, dword [esp + 0x6c]
mov ecx, edi
call fcn.004759a0
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x499136
mov eax, edi
cmp byte [esp + 0x13], 1
mov byte [eax + 0x15], 1
jne 0x49915e
push dword [esp + 0x1c]
mov edx, 0x75
mov ecx, ebx
call fcn.004c81f0
add esp, 4
cmp dword [edi + 0x74], 0
jne 0x49915e
mov byte [edi + 0x14], 0
push 0xfffffffffffffff4
push esi
push dword [esp + 0x20]
mov edx, 0xa
mov ecx, ebx
push 1
push 0
call fcn.004c7e30
mov eax, dword [ebx + 0x6c]
add esp, 0x14
test eax, eax
jle 0x4991c9
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [ebx + 0x68]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x4991c9
push dword [esp + 0x34]
cmp byte [edi + 0x12], 0
mov edx, esi
push dword [esp + 0x84]
sete al
push 0xb
movzx eax, al
push eax
push dword [esp + 0x38]
push dword [esp + 0x2c]
push dword [esp + 0x78]
push ecx
push dword [esp + 0x90]
mov ecx, edi
call fcn.004985d0
add esp, 0x24
cmp byte [esp + 0x13], 0
mov ecx, ebx
je 0x4991e6
mov edx, dword [esp + 0x64]
call fcn.004c7a60
mov ecx, dword [esp + 0x68]
call fcn.00467a10
jmp 0x49921e
cmp dword [esp + 0x14], 0
je 0x49920a
mov esi, dword [esp + 0x50]
mov edx, 5
lea eax, [esi + 1]
push eax
push dword [esp + 0x30]
call fcn.004c8180
add esp, 8
mov edx, esi
jmp 0x499217
mov edx, dword [esp + 0x50]
call fcn.004c8110
mov edx, dword [esp + 0x50]
mov ecx, ebx
call fcn.004c7670
cmp byte [edi + 0x12], 0
jne 0x499237
cmp dword [edi + 0x78], 0
jne 0x499237
cmp dword [edi + 0x70], 0
je 0x499237
mov ecx, edi
call fcn.004910b0
mov eax, dword [esp + 0x54]
test eax, eax
je 0x49926f
push 1
push eax
mov edx, 0x51
mov ecx, ebx
call fcn.004c8180
mov edx, 1
mov ecx, ebx
call fcn.004c5bd0
push 0
push str.rows_deleted
push 0
xor edx, edx
mov ecx, ebx
call fcn.004c5b80
add esp, 0x14
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
test eax, eax
je 0x49928d
mov ecx, dword [esp + 0x78]
mov dword [eax + 0xf0], ecx
jmp 0x49928d
xor esi, esi
mov edx, dword [esp + 0x40]
mov ecx, ebx
call fcn.0049b7b0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4992a9
mov edx, eax
mov ecx, ebx
call fcn.004afa70
test esi, esi
je 0x499314
test ebx, ebx
je 0x49930b
cmp dword [ebx + 0x1e8], 0
je 0x4992d8
mov edx, esi
mov ecx, ebx
call fcn.004ed280
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret
cmp esi, dword [ebx + 0x138]
jb 0x49930b
cmp esi, dword [ebx + 0x13c]
jae 0x49930b
mov eax, dword [ebx + 0x134]
mov dword [esi], eax
mov dword [ebx + 0x134], esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret
push esi
call fcn.004ed2c0
add esp, 4
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret