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

Disassembly:
sub esp, 0x88
xor eax, eax
push ebp
mov ebp, dword [esp + 0x90]
mov ecx, dword [ebp]
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x28], ecx
cmp dword [ebp + 0x24], eax
jne 0x51d5b5
mov edx, ecx
cmp byte [edx + 0x49], al
jne 0x51d5b5
mov ecx, dword [esp + 0x98]
mov eax, ebp
call fcn.004ef550
mov esi, eax
mov dword [esp + 0x58], esi
test esi, esi
je 0x51d5b5
push 0
push 0
push 0x75
mov edx, esi
mov eax, ebp
call fcn.004b8ab0
xor ecx, ecx
add esp, 0xc
cmp dword [esi + 0xc], ecx
mov dword [esp + 0x64], eax
setne cl
mov dword [esp + 0x48], ecx
test eax, eax
jne 0x51ce38
push eax
push esi
xor ecx, ecx
mov eax, ebp
call fcn.004c2370
add esp, 8
mov dword [esp + 8], 0
test eax, eax
je 0x51ce40
mov dword [esp + 8], 1
push esi
mov eax, ebp
call fcn.004fa4a0
add esp, 4
test eax, eax
jne 0x51d5b5
xor edx, edx
cmp dword [esp + 0x64], edx
mov ecx, esi
setne dl
mov eax, ebp
push edx
call fcn.004d9190
add esp, 4
test eax, eax
jne 0x51d5b5
mov edx, dword [esi + 0x48]
push edi
mov edi, dword [esp + 0x2c]
mov ecx, edi
call fcn.004b83c0
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x14], eax
shl eax, 4
mov edx, dword [eax + ecx]
mov eax, dword [esi]
push edx
push 0
push eax
push 9
mov eax, ebp
call fcn.004d7c90
add esp, 0x10
mov dword [esp + 0x20], eax
cmp eax, 1
je 0x51d5b4
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x9c]
mov dword [ecx + 0x34], eax
inc dword [ebp + 0x28]
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
xor edx, edx
mov dword [esp + 0x44], edx
test eax, eax
je 0x51cee0
inc ecx
mov dword [ebp + 0x28], ecx
mov eax, dword [eax + 0x14]
inc edx
test eax, eax
jne 0x51ced0
mov dword [esp + 0x44], edx
cmp dword [esp + 0x4c], 0
je 0x51cefd
mov edx, dword [ebp + 0xec]
mov eax, dword [esi]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], edx
mov dword [ebp + 0xec], eax
push ebx
mov ecx, ebp
call fcn.004cd3a0
mov ebx, eax
test ebx, ebx
je 0x51d5b3
cmp byte [ebp + 0x12], 0
jne 0x51cf1c
or dword [ebx + 0x94], 0x20
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, ebp
call fcn.005024c0
add esp, 4
cmp dword [esp + 0x50], 0
je 0x51cf65
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa4]
push edi
push edx
push eax
push ecx
push esi
push ebp
call fcn.005115a0
add esp, 0x18
mov dword [esp + 0x5c], edi
mov dword [esp + 0x38], edi
mov edx, dword [esp + 0xa0]
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa4]
push eax
lea edi, [esp + 0x7c]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], edx
call fcn.004eddf0
add esp, 4
test eax, eax
jne 0x51d5b3
mov ecx, dword [esp + 0x30]
test byte [ecx + 0x1c], 0x80
je 0x51cff5
cmp byte [ebp + 0x12], al
jne 0x51cff5
cmp dword [ebp + 0x78], eax
jne 0x51cff5
inc dword [ebp + 0x2c]
mov edi, dword [ebp + 0x2c]
push eax
push edi
push eax
push 0x46
push ebx
mov dword [esp + 0x34], edi
call fcn.004c5570
add esp, 0x14
jmp 0x51cff9
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x10]
jne 0x51d091
cmp dword [esp + 0xa4], 0
jne 0x51d091
test eax, eax
jne 0x51d091
cmp dword [esi + 0x38], eax
jne 0x51d091
mov edx, dword [esi]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
push 1
push eax
push ecx
mov eax, ebp
call fcn.004c74a0
add esp, 0x10
test byte [esi + 0x24], 0x20
jne 0x51d060
test edi, edi
je 0x51d041
mov eax, edi
jmp 0x51d044
or eax, 0xffffffff
mov edx, dword [esi]
mov ecx, dword [esi + 0x1c]
push 0xffffffffffffffff
push edx
push ecx
mov ecx, dword [esp + 0x24]
push 0x8a
mov edi, ebx
call fcn.004c5660
add esp, 0x10
mov esi, dword [esi + 8]
test esi, esi
je 0x51d563
mov edi, dword [esp + 0x18]
nop
mov edx, dword [esi + 0x2c]
push 0
push edi
push edx
push 0x8a
push ebx
call fcn.004c5570
mov esi, dword [esi + 0x14]
add esp, 0x14
test esi, esi
jne 0x51d070
jmp 0x51d563
test byte [esp + 0x90], 0x40
je 0x51d0a0
mov eax, 1
neg eax
sbb eax, eax
and eax, 0xfffffff8
add eax, 8
mov ecx, 0x414
or ax, cx
test byte [esi + 0x24], 0x20
movzx edx, ax
mov dword [esp + 0x24], edx
jne 0x51d0e8
mov eax, 1
add dword [ebp + 0x2c], eax
xor edi, edi
push edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x2c]
push eax
push edi
push 0x49
push ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x68], eax
call fcn.004c5570
add esp, 0x14
jmp 0x51d138
mov eax, esi
call fcn.004b6f90
mov edi, eax
movzx ecx, word [edi + 0x32]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x18], ecx
movsx ecx, cx
lea edx, [eax + 1]
add eax, ecx
push 0
push ecx
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp + 0x28]
push eax
mov dword [esp + 0x40], edx
lea edx, [eax + 1]
push 0x71
push ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x58], eax
mov dword [ebp + 0x28], edx
call fcn.004c5570
mov dword [esp + 0x3c], eax
add esp, 0x14
mov ecx, edi
mov eax, ebp
call fcn.004f96c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xa4]
inc eax
push eax
mov eax, dword [esp + 0xa4]
push ecx
push 0
push 0
push edx
push eax
push ebp
call fcn.0050a010
add esp, 0x1c
mov dword [esp + 0x24], eax
test eax, eax
je 0x51d5b3
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
movzx eax, byte [eax + 0x31]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x2c], eax
cmp eax, 1
je 0x51d194
mov eax, dword [ebp + 0x74]
test eax, eax
jne 0x51d190
mov eax, ebp
mov byte [eax + 0x14], 1
cmp dword [esp + 0x20], 0
je 0x51d1af
mov eax, dword [esp + 0x20]
push 0
push 1
push eax
push 0x53
push ebx
call fcn.004c5570
add esp, 0x14
test edi, edi
je 0x51d1f7
movsx eax, word [esp + 0x18]
xor edi, edi
test eax, eax
jle 0x51d1ed
mov edi, edi
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
lea edx, [edi + ecx]
mov ecx, dword [eax + 4]
movsx eax, word [ecx + edi*2]
push edx
mov edx, dword [esp + 0x20]
push edx
push ebx
mov ecx, esi
call fcn.004ee5c0
movsx eax, word [esp + 0x24]
inc edi
add esp, 0xc
cmp edi, eax
jl 0x51d1c0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
jmp 0x51d217
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
mov ecx, dword [esp + 0x1c]
push 0
push eax
push ecx
push 0x81
push ebx
mov dword [esp + 0x28], eax
call fcn.004c5570
add esp, 0x14
cmp dword [esp + 0x2c], 0
je 0x51d2b3
movzx edx, word [esp + 0x18]
mov eax, dword [esp + 0x48]
add eax, 2
mov dword [esp + 0x40], edx
cdq
push edx
push eax
mov eax, dword [esp + 0x38]
call fcn.004bbd30
mov edi, eax
add esp, 8
mov dword [esp + 0x4c], edi
test edi, edi
jne 0x51d25d
mov eax, dword [esp + 0x24]
push eax
call fcn.004ca5a0
add esp, 4
jmp 0x51d5b3
mov ecx, dword [esp + 0x48]
inc ecx
push ecx
push 1
push edi
call fcn.00585e50
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x54]
add esp, 0xc
mov byte [edx + edi + 1], 0
test eax, eax
jl 0x51d287
sub eax, dword [esp + 0x1c]
mov byte [eax + edi], 0
mov eax, dword [esp + 0x74]
test eax, eax
jl 0x51d297
sub eax, dword [esp + 0x1c]
mov byte [eax + edi], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x51d2a6
mov edx, ebx
call fcn.004bfed0
mov eax, ebx
call fcn.004c5810
mov dword [esp + 0x58], eax
jmp 0x51d331
cmp dword [esp + 0x10], 0
je 0x51d38e
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
movsx edi, word [esp + 0x18]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
push edi
mov dword [esp + 0x44], 0
mov dword [esp + 0x2c], edi
call fcn.004c8420
mov ecx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, edi
push 0x66
mov edi, ebx
call fcn.004c5660
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x4c]
push 0x85
mov esi, ebx
call fcn.004c57a0
mov esi, dword [esp + 0x7c]
add esp, 0x1c
mov eax, dword [esp + 0x24]
push eax
call fcn.004ca5a0
mov edi, dword [esp + 0x50]
add esp, 4
cmp dword [esp + 0x50], 0
jne 0x51d3b5
cmp dword [esp + 0x2c], 2
mov dword [esp + 0x28], 0
jne 0x51d35c
push 0
push 0
push 0
push 0x11
push ebx
call fcn.004c5570
add esp, 0x14
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x3c]
push edx
push edi
push eax
push 8
push 0x6e
push esi
push ebp
call fcn.004fada0
add esp, 0x20
cmp dword [esp + 0x2c], 2
jne 0x51d3b5
mov eax, dword [esp + 0x28]
mov edx, ebx
call fcn.004bfd80
jmp 0x51d3bc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x54]
push 0
push ecx
push edx
push 0x95
push ebx
mov dword [esp + 0x54], 1
call fcn.004c5570
add esp, 0x14
jmp 0x51d320
cmp dword [esp + 0x2c], 0
je 0x51d3fb
cmp dword [esi + 0x38], 0
jne 0x51d468
sub edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
cmp byte [edi + ecx], 0
je 0x51d462
movsx edx, word [esp + 0x40]
mov eax, ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
mov eax, dword [esp + 0x1c]
push 0x1c
mov esi, ebx
call fcn.004c57a0
mov esi, dword [esp + 0x6c]
add esp, 0xc
jmp 0x51d462
cmp dword [esp + 0x10], 0
je 0x51d447
mov edi, dword [esp + 0x44]
push 0
push 0
push edi
push 0x24
push ebx
call fcn.004c5570
add esp, 0x14
cmp dword [esi + 0x38], 0
mov dword [esp + 0x3c], eax
je 0x51d432
mov ecx, dword [esp + 0x14]
push ecx
push 0
push edi
push 0x5a
push ebx
call fcn.004c5570
jmp 0x51d45f
mov edx, dword [esp + 0x14]
push 0
push edx
push edi
push 0x80
push ebx
call fcn.004c5570
jmp 0x51d45f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
push eax
push 0
push ecx
push 0x29
push ebx
call fcn.004c5570
mov dword [esp + 0x50], eax
add esp, 0x14
cmp dword [esi + 0x38], 0
je 0x51d4d4
mov ecx, dword [esp + 0x30]
mov eax, esi
call fcn.004b8c10
mov edi, eax
push esi
mov eax, ebp
call fcn.004c2b70
add esp, 4
mov ecx, ebp
call fcn.004b7730
cmp dword [esp + 0x2c], 1
jne 0x51d4ac
mov edx, dword [esp + 0x1c]
push 0
push 0
push edx
push 0x75
push ebx
call fcn.004c5570
add esp, 0x14
cmp dword [ebp + 0x74], 0
jne 0x51d4ac
mov byte [ebp + 0x14], 0
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff4
push edi
push 0
push 0xa
mov ecx, 1
mov edi, ebx
call fcn.004c5660
add esp, 0x10
mov edx, 2
mov ecx, ebx
call fcn.004b3790
jmp 0x51d511
cmp byte [ebp + 0x12], 0
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x48]
push 0xb
sete dl
movzx eax, dl
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x84]
push eax
push ecx
push edx
push esi
push ebp
call fcn.0051ca30
add esp, 0x2c
cmp dword [esp + 0x2c], 0
je 0x51d532
mov edx, dword [esp + 0x58]
mov ecx, ebx
call fcn.004b3740
mov eax, dword [esp + 0x24]
push eax
call fcn.004ca5a0
add esp, 4
jmp 0x51d563
cmp dword [esp + 0x10], 0
mov esi, dword [esp + 0x3c]
push 0
je 0x51d54c
mov edx, dword [esp + 0x48]
lea ecx, [esi + 1]
push ecx
push edx
push 5
jmp 0x51d551
push esi
push 0
push 0xb
push ebx
call fcn.004c5570
add esp, 0x14
mov eax, esi
mov edx, ebx
call fcn.004bfd80
cmp byte [ebp + 0x12], 0
jne 0x51d57e
cmp dword [ebp + 0x78], 0
jne 0x51d57e
cmp dword [ebp + 0x70], 0
je 0x51d57e
push ebp
call fcn.004fac40
add esp, 4
cmp dword [esp + 0x20], 0
je 0x51d5b3
mov eax, dword [esp + 0x20]
push 0
push 1
push eax
push 0x51
push ebx
call fcn.004c5570
push 1
push ebx
call fcn.004c0110
push 0
push str.rows_deleted
push 0
push 0
mov ecx, ebx
call fcn.004cf760
add esp, 0x2c
pop ebx
pop edi
mov eax, dword [esp + 0x60]
test eax, eax
je 0x51d5c7
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0xec], ecx
mov edx, dword [esp + 0x98]
mov esi, dword [esp + 0x28]
push edx
mov eax, esi
call fcn.004b74d0
mov eax, dword [esp + 0xa0]
add esp, 4
test eax, eax
je 0x51d5f2
push eax
push esi
call fcn.004c6ab0
add esp, 8
mov eax, dword [esp + 0x44]
test eax, eax
je 0x51d647
test esi, esi
je 0x51d63e
cmp dword [esi + 0x1d8], 0
je 0x51d617
mov ecx, esi
call fcn.004aca10
pop esi
pop ebp
add esp, 0x88
ret
cmp eax, dword [esi + 0x128]
jb 0x51d63e
cmp eax, dword [esi + 0x12c]
jae 0x51d63e
mov ecx, dword [esi + 0x124]
mov dword [eax], ecx
mov dword [esi + 0x124], eax
pop esi
pop ebp
add esp, 0x88
ret
push eax
call fcn.004ac9a0
add esp, 4
pop esi
pop ebp
add esp, 0x88
ret