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

Disassembly:
sub esp, 0x4c
or dword [esp + 0x10], 0xffffffff
xor eax, eax
and dword [esp + 0x1c], eax
push ebx
mov ebx, dword [esp + 0x54]
push esi
mov esi, dword [esp + 0x5c]
push edi
mov edi, dword [ebx]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edi
cmp dword [ebx + 0x40], eax
jne 0x498331
cmp byte [edi + 0x1e], al
jne 0x498331
push ebp
push esi
push ebx
call fcn.004a6401
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0x49832c
push 0
push 0
push 0x6a
push ebp
push ebx
call fcn.004a6f58
mov esi, eax
xor eax, eax
cmp dword [ebp + 0x1c], eax
push ebp
setne al
mov dword [esp + 0x40], esi
push ebx
mov dword [esp + 0x38], eax
call fcn.004b0faa
add esp, 0x1c
test eax, eax
jne 0x498328
test esi, esi
setne al
push eax
push ebp
push ebx
call fcn.0049ebb5
add esp, 0xc
test eax, eax
jne 0x498328
push dword [ebp + 0x44]
push edi
call fcn.004a4a44
mov ecx, dword [edi + 8]
mov edx, eax
add edx, edx
mov dword [esp + 0x2c], eax
push dword [ecx + edx*8]
push 0
push dword [ebp]
push 9
push ebx
call fcn.004934d6
add esp, 0x1c
mov dword [esp + 0x30], eax
cmp eax, 1
je 0x498328
mov ecx, dword [esp + 0x64]
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x14], eax
mov dword [ecx + 0x28], eax
inc dword [ebx + 0x44]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebp + 0x10]
jmp 0x498006
inc ecx
mov dword [ebx + 0x44], ecx
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x497fff
cmp dword [esp + 0x1c], eax
je 0x498027
mov eax, dword [ebx + 0x204]
mov dword [esp + 0x10], eax
mov eax, dword [ebp]
mov dword [esp + 0x2c], ebx
mov dword [ebx + 0x204], eax
push ebx
call fcn.0049d3e9
mov esi, eax
mov dword [esp + 0x38], esi
pop ecx
test esi, esi
je 0x498328
cmp byte [ebx + 0x13], 0
jne 0x498046
mov byte [esi + 0x62], 1
push dword [esp + 0x24]
push 1
push ebx
call fcn.00493e37
add esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x49806e
push dword [esp + 0x14]
push dword [esp + 0x6c]
push ebp
push ebx
call fcn.0049f293
add esp, 0x10
push 9
xor eax, eax
lea edi, [esp + 0x3c]
pop ecx
push dword [esp + 0x68]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], ebx
call fcn.004a3d83
mov edi, dword [esp + 0x20]
pop ecx
pop ecx
test eax, eax
jne 0x498328
test dword [edi + 0xc], 0x1000
je 0x4980c2
inc dword [ebx + 0x48]
mov eax, dword [ebx + 0x48]
push eax
push 0
push 7
push esi
mov dword [esp + 0x30], eax
call fcn.004a8e4a
add esp, 0x10
cmp dword [esp + 0x30], 0
jne 0x498138
cmp dword [esp + 0x68], 0
jne 0x498138
cmp dword [esp + 0x28], 0
jne 0x498138
test byte [ebp + 0x22], 0x10
jne 0x498138
push 0
push 0
push ebp
push ebx
call fcn.0049bfa5
add esp, 0x10
test eax, eax
jne 0x498138
push 0xfffffffffffffffe
push dword [ebp]
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [ebp + 0x14]
push 0x67
push esi
call fcn.004a8eb6
mov edi, dword [ebp + 0x10]
add esp, 0x1c
test edi, edi
je 0x4982cf
mov ebx, dword [esp + 0x24]
push ebx
push dword [edi + 0x14]
push 0x67
push esi
call fcn.004a8e4a
mov edi, dword [edi + 0x20]
add esp, 0x10
test edi, edi
jne 0x498119
mov ebx, dword [esp + 0x60]
jmp 0x4982cf
mov ecx, dword [ebx + 0x48]
inc ecx
push ecx
push 0
push 0xa
lea eax, [ecx + 1]
mov dword [esp + 0x6c], ecx
push esi
mov dword [ebx + 0x48], eax
call fcn.004a8e4a
push 8
push 0
push 0
push dword [esp + 0x84]
push dword [esp + 0x84]
push ebx
call fcn.004b2266
add esp, 0x28
mov dword [esp + 0x30], eax
test eax, eax
je 0x498328
mov ecx, dword [esp + 0x60]
inc ecx
push ecx
push dword [esp + 0x18]
push 0xffffffffffffffff
push ebp
push ebx
call fcn.00499548
push eax
push dword [esp + 0x78]
push 0x70
push esi
call fcn.004a8e4a
add esp, 0x24
test dword [edi + 0xc], 0x1000
je 0x4981b7
push 1
push dword [esp + 0x24]
push 0x14
push esi
call fcn.004a8e4a
add esp, 0x10
push dword [esp + 0x30]
call fcn.004b2ba5
push esi
call fcn.004af1c5
cmp dword [esp + 0x24], 0
pop ecx
pop ecx
mov dword [esp + 0x24], eax
jne 0x4981e3
push 0x28
push dword [esp + 0x18]
push ebp
push ebx
call fcn.0049f902
add esp, 0x10
mov ecx, dword [esp + 0x60]
lea eax, [ecx + 1]
push eax
push dword [esp + 0x28]
push ecx
push 0x71
push esi
call fcn.004a8e65
add esp, 0x14
mov dword [esp + 0x30], eax
test byte [ebp + 0x22], 0x10
je 0x498252
push ebp
push edi
call fcn.0049d1d5
push ebp
push ebx
mov esi, eax
call fcn.004b14ff
mov eax, dword [esp + 0x70]
push 0xfffffffffffffff6
push esi
mov esi, dword [esp + 0x4c]
inc eax
push eax
push 1
push 0
push 0x8c
push esi
call fcn.004a8eb6
push 2
push esi
call fcn.004a920d
mov eax, dword [ebx + 0x1a8]
add esp, 0x34
test eax, eax
mov ecx, ebx
cmovne ecx, eax
mov byte [ecx + 0x159], 1
jmp 0x498275
xor eax, eax
cmp byte [ebx + 0x13], al
push 0x63
push dword [esp + 0x2c]
sete al
push eax
mov eax, dword [esp + 0x6c]
inc eax
push eax
push dword [esp + 0x24]
push ebp
push ebx
call fcn.0049c892
add esp, 0x1c
push dword [esp + 0x30]
push 0
push 1
push esi
call fcn.004a8e4a
push dword [esp + 0x34]
push esi
call fcn.004b05c5
add esp, 0x18
cmp dword [esp + 0x1c], 0
jne 0x4982d3
test byte [ebp + 0x22], 0x10
jne 0x4982d3
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4982c0
mov ebp, dword [esp + 0x14]
inc ebp
push dword [edi + 0x14]
push ebp
push 0x2d
push esi
call fcn.004a8e4a
mov edi, dword [edi + 0x20]
add esp, 0x10
inc ebp
test edi, edi
jne 0x4982a9
push dword [esp + 0x14]
push 0x2d
push esi
call fcn.004a8e31
add esp, 0xc
mov edi, dword [esp + 0x18]
xor ebp, ebp
cmp byte [ebx + 0x13], 0
jne 0x4982ea
cmp dword [ebx + 0x1ac], ebp
jne 0x4982ea
push ebx
call fcn.0049384f
pop ecx
test dword [edi + 0xc], 0x1000
je 0x498328
cmp byte [ebx + 0x13], 0
jne 0x498328
cmp dword [ebx + 0x1ac], ebp
jne 0x498328
push 1
push dword [esp + 0x24]
push 0x10
push esi
call fcn.004a8e4a
push 1
push esi
call fcn.004b09e1
push ebp
push str.rows_deleted
push ebp
push ebp
push esi
call fcn.004b09a8
add esp, 0x2c
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x10]
pop ebp
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x49833f
mov dword [ebx + 0x204], eax
push esi
push edi
call fcn.004a60fd
push dword [esp + 0x6c]
push edi
call fcn.0049a532
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x4c
ret