Function at 0x51cf50
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 0x51d785
mov edx, ecx
cmp byte [edx + 0x49], al
jne 0x51d785
mov ecx, dword [esp + 0x98]
mov eax, ebp
call fcn.004ef710
mov esi, eax
mov dword [esp + 0x58], esi
test esi, esi
je 0x51d785
push 0
push 0
push 0x75
mov edx, esi
mov eax, ebp
call fcn.004b8c70
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 0x51d008
push eax
push esi
xor ecx, ecx
mov eax, ebp
call fcn.004c2520
add esp, 8
mov dword [esp + 8], 0
test eax, eax
je 0x51d010
mov dword [esp + 8], 1
push esi
mov eax, ebp
call fcn.004fa660
add esp, 4
test eax, eax
jne 0x51d785
xor edx, edx
cmp dword [esp + 0x64], edx
mov ecx, esi
setne dl
mov eax, ebp
push edx
call fcn.004d9350
add esp, 4
test eax, eax
jne 0x51d785
mov edx, dword [esi + 0x48]
push edi
mov edi, dword [esp + 0x2c]
mov ecx, edi
call fcn.004b8580
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.004d7e50
add esp, 0x10
mov dword [esp + 0x20], eax
cmp eax, 1
je 0x51d784
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 0x51d0b0
inc ecx
mov dword [ebp + 0x28], ecx
mov eax, dword [eax + 0x14]
inc edx
test eax, eax
jne 0x51d0a0
mov dword [esp + 0x44], edx
cmp dword [esp + 0x4c], 0
je 0x51d0cd
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.004cd560
mov ebx, eax
test ebx, ebx
je 0x51d783
cmp byte [ebp + 0x12], 0
jne 0x51d0ec
or dword [ebx + 0x94], 0x20
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, ebp
call fcn.00502690
add esp, 4
cmp dword [esp + 0x50], 0
je 0x51d135
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.00511770
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.004edfb0
add esp, 4
test eax, eax
jne 0x51d783
mov ecx, dword [esp + 0x30]
test byte [ecx + 0x1c], 0x80
je 0x51d1c5
cmp byte [ebp + 0x12], al
jne 0x51d1c5
cmp dword [ebp + 0x78], eax
jne 0x51d1c5
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.004c5720
add esp, 0x14
jmp 0x51d1c9
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x10]
jne 0x51d261
cmp dword [esp + 0xa4], 0
jne 0x51d261
test eax, eax
jne 0x51d261
cmp dword [esi + 0x38], eax
jne 0x51d261
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.004c7650
add esp, 0x10
test byte [esi + 0x24], 0x20
jne 0x51d230
test edi, edi
je 0x51d211
mov eax, edi
jmp 0x51d214
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.004c5810
add esp, 0x10
mov esi, dword [esi + 8]
test esi, esi
je 0x51d733
mov edi, dword [esp + 0x18]
nop
mov edx, dword [esi + 0x2c]
push 0
push edi
push edx
push 0x8a
push ebx
call fcn.004c5720
mov esi, dword [esi + 0x14]
add esp, 0x14
test esi, esi
jne 0x51d240
jmp 0x51d733
test byte [esp + 0x90], 0x40
je 0x51d270
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 0x51d2b8
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.004c5720
add esp, 0x14
jmp 0x51d308
mov eax, esi
call fcn.004b7150
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.004c5720
mov dword [esp + 0x3c], eax
add esp, 0x14
mov ecx, edi
mov eax, ebp
call fcn.004f9880
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.0050a1e0
add esp, 0x1c
mov dword [esp + 0x24], eax
test eax, eax
je 0x51d783
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 0x51d364
mov eax, dword [ebp + 0x74]
test eax, eax
jne 0x51d360
mov eax, ebp
mov byte [eax + 0x14], 1
cmp dword [esp + 0x20], 0
je 0x51d37f
mov eax, dword [esp + 0x20]
push 0
push 1
push eax
push 0x53
push ebx
call fcn.004c5720
add esp, 0x14
test edi, edi
je 0x51d3c7
movsx eax, word [esp + 0x18]
xor edi, edi
test eax, eax
jle 0x51d3bd
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.004ee780
movsx eax, word [esp + 0x24]
inc edi
add esp, 0xc
cmp edi, eax
jl 0x51d390
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
jmp 0x51d3e7
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.004c5720
add esp, 0x14
cmp dword [esp + 0x2c], 0
je 0x51d483
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.004bbee0
mov edi, eax
add esp, 8
mov dword [esp + 0x4c], edi
test edi, edi
jne 0x51d42d
mov eax, dword [esp + 0x24]
push eax
call fcn.004ca760
add esp, 4
jmp 0x51d783
mov ecx, dword [esp + 0x48]
inc ecx
push ecx
push 1
push edi
call fcn.00586030
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x54]
add esp, 0xc
mov byte [edx + edi + 1], 0
test eax, eax
jl 0x51d457
sub eax, dword [esp + 0x1c]
mov byte [eax + edi], 0
mov eax, dword [esp + 0x74]
test eax, eax
jl 0x51d467
sub eax, dword [esp + 0x1c]
mov byte [eax + edi], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x51d476
mov edx, ebx
call fcn.004c0080
mov eax, ebx
call fcn.004c59c0
mov dword [esp + 0x58], eax
jmp 0x51d501
cmp dword [esp + 0x10], 0
je 0x51d55e
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.004c85e0
mov ecx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, edi
push 0x66
mov edi, ebx
call fcn.004c5810
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.004c5950
mov esi, dword [esp + 0x7c]
add esp, 0x1c
mov eax, dword [esp + 0x24]
push eax
call fcn.004ca760
mov edi, dword [esp + 0x50]
add esp, 4
cmp dword [esp + 0x50], 0
jne 0x51d585
cmp dword [esp + 0x2c], 2
mov dword [esp + 0x28], 0
jne 0x51d52c
push 0
push 0
push 0
push 0x11
push ebx
call fcn.004c5720
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.004faf60
add esp, 0x20
cmp dword [esp + 0x2c], 2
jne 0x51d585
mov eax, dword [esp + 0x28]
mov edx, ebx
call fcn.004bff30
jmp 0x51d58c
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.004c5720
add esp, 0x14
jmp 0x51d4f0
cmp dword [esp + 0x2c], 0
je 0x51d5cb
cmp dword [esi + 0x38], 0
jne 0x51d638
sub edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
cmp byte [edi + ecx], 0
je 0x51d632
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.004c5950
mov esi, dword [esp + 0x6c]
add esp, 0xc
jmp 0x51d632
cmp dword [esp + 0x10], 0
je 0x51d617
mov edi, dword [esp + 0x44]
push 0
push 0
push edi
push 0x24
push ebx
call fcn.004c5720
add esp, 0x14
cmp dword [esi + 0x38], 0
mov dword [esp + 0x3c], eax
je 0x51d602
mov ecx, dword [esp + 0x14]
push ecx
push 0
push edi
push 0x5a
push ebx
call fcn.004c5720
jmp 0x51d62f
mov edx, dword [esp + 0x14]
push 0
push edx
push edi
push 0x80
push ebx
call fcn.004c5720
jmp 0x51d62f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
push eax
push 0
push ecx
push 0x29
push ebx
call fcn.004c5720
mov dword [esp + 0x50], eax
add esp, 0x14
cmp dword [esi + 0x38], 0
je 0x51d6a4
mov ecx, dword [esp + 0x30]
mov eax, esi
call fcn.004b8dd0
mov edi, eax
push esi
mov eax, ebp
call fcn.004c2d20
add esp, 4
mov ecx, ebp
call fcn.004b78f0
cmp dword [esp + 0x2c], 1
jne 0x51d67c
mov edx, dword [esp + 0x1c]
push 0
push 0
push edx
push 0x75
push ebx
call fcn.004c5720
add esp, 0x14
cmp dword [ebp + 0x74], 0
jne 0x51d67c
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.004c5810
add esp, 0x10
mov edx, 2
mov ecx, ebx
call fcn.004b3950
jmp 0x51d6e1
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.0051cc00
add esp, 0x2c
cmp dword [esp + 0x2c], 0
je 0x51d702
mov edx, dword [esp + 0x58]
mov ecx, ebx
call fcn.004b3900
mov eax, dword [esp + 0x24]
push eax
call fcn.004ca760
add esp, 4
jmp 0x51d733
cmp dword [esp + 0x10], 0
mov esi, dword [esp + 0x3c]
push 0
je 0x51d71c
mov edx, dword [esp + 0x48]
lea ecx, [esi + 1]
push ecx
push edx
push 5
jmp 0x51d721
push esi
push 0
push 0xb
push ebx
call fcn.004c5720
add esp, 0x14
mov eax, esi
mov edx, ebx
call fcn.004bff30
cmp byte [ebp + 0x12], 0
jne 0x51d74e
cmp dword [ebp + 0x78], 0
jne 0x51d74e
cmp dword [ebp + 0x70], 0
je 0x51d74e
push ebp
call fcn.004fae00
add esp, 4
cmp dword [esp + 0x20], 0
je 0x51d783
mov eax, dword [esp + 0x20]
push 0
push 1
push eax
push 0x51
push ebx
call fcn.004c5720
push 1
push ebx
call fcn.004c02c0
push 0
push str.rows_deleted
push 0
push 0
mov ecx, ebx
call fcn.004cf920
add esp, 0x2c
pop ebx
pop edi
mov eax, dword [esp + 0x60]
test eax, eax
je 0x51d797
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.004b7690
mov eax, dword [esp + 0xa0]
add esp, 4
test eax, eax
je 0x51d7c2
push eax
push esi
call fcn.004c6c60
add esp, 8
mov eax, dword [esp + 0x44]
test eax, eax
je 0x51d817
test esi, esi
je 0x51d80e
cmp dword [esi + 0x1d8], 0
je 0x51d7e7
mov ecx, esi
call fcn.004acbd0
pop esi
pop ebp
add esp, 0x88
ret
cmp eax, dword [esi + 0x128]
jb 0x51d80e
cmp eax, dword [esi + 0x12c]
jae 0x51d80e
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.004acb60
add esp, 4
pop esi
pop ebp
add esp, 0x88
ret