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

Disassembly:
sub esp, 0x88
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x94]
mov ecx, dword [edi]
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x10], ecx
cmp dword [edi + 0x40], eax
jne 0x521ad9
mov edx, ecx
cmp byte [edx + 0x41], al
jne 0x521ad9
mov eax, dword [esp + 0x98]
push ebx
push edi
call fcn.004f1bc0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x521ad8
push 0
push 0
push 0x6d
mov edx, ebx
mov eax, edi
call fcn.004c8d50
xor ecx, ecx
add esp, 0xc
cmp dword [ebx + 0xc], ecx
mov dword [esp + 0x54], eax
setne cl
mov dword [esp + 0x4c], ecx
test eax, eax
jne 0x52135a
push eax
push ebx
xor ecx, ecx
mov eax, edi
call fcn.004c8450
add esp, 8
mov dword [esp + 0x40], 0
test eax, eax
je 0x521362
mov dword [esp + 0x40], 1
push ebx
mov eax, edi
call fcn.005043f0
add esp, 4
test eax, eax
jne 0x521ad8
xor edx, edx
cmp dword [esp + 0x54], edx
mov ecx, ebx
setne dl
mov eax, edi
push edx
call fcn.004e50b0
add esp, 4
test eax, eax
jne 0x521ad8
mov esi, dword [ebx + 0x40]
push ebp
mov ebp, dword [esp + 0x18]
mov ecx, ebp
call fcn.004c86c0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebx]
mov dword [esp + 0x10], eax
shl eax, 4
mov eax, dword [eax + ecx]
push eax
push 0
push edx
push 9
mov eax, edi
call fcn.004e4090
add esp, 0x10
mov dword [esp + 0x24], eax
cmp eax, 1
je 0x521ad7
mov eax, dword [edi + 0x44]
mov ecx, dword [esp + 0xa0]
mov dword [ecx + 0x38], eax
inc dword [edi + 0x44]
mov ecx, dword [edi + 0x44]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 8]
xor edx, edx
mov dword [esp + 0x5c], edx
test eax, eax
je 0x521402
inc ecx
mov dword [edi + 0x44], ecx
mov eax, dword [eax + 0x14]
inc edx
test eax, eax
jne 0x5213f2
mov dword [esp + 0x5c], edx
cmp dword [esp + 0x50], 0
je 0x52141f
mov edx, dword [edi + 0x1ec]
mov eax, dword [ebx]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], edx
mov dword [edi + 0x1ec], eax
call fcn.004d8f30
mov ebp, eax
test ebp, ebp
je 0x521ad7
cmp byte [edi + 0x12], 0
jne 0x521438
or dword [ebp + 0x58], 4
mov ecx, dword [esp + 0x10]
push 1
mov edx, edi
call fcn.00508bd0
add esp, 4
cmp dword [esp + 0x50], 0
je 0x52146e
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa4]
push esi
push ecx
push ebx
push edi
call fcn.005158a0
add esp, 0x10
mov dword [esp + 0x48], esi
mov dword [esp + 0x28], esi
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 esi, [esp + 0x7c]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edx
call fcn.004f0cd0
add esp, 4
test eax, eax
jne 0x521ad7
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x18], 0x80
lea esi, [eax + 1]
je 0x5214f7
add dword [edi + 0x48], esi
mov eax, dword [edi + 0x48]
push 0
push eax
push 0
push 0x17
push ebp
mov dword [esp + 0x60], eax
call fcn.004cf760
add esp, 0x14
cmp dword [esp + 0x24], 0
jne 0x52157e
cmp dword [esp + 0xa4], 0
jne 0x52157e
cmp dword [esp + 0x44], 0
jne 0x52157e
test byte [ebx + 0x2a], 0x10
jne 0x52157e
mov edx, dword [ebx]
mov eax, dword [ebx + 0x1c]
push edx
push esi
mov esi, dword [esp + 0x18]
push eax
push esi
push edi
call fcn.004d2240
add esp, 0x14
test byte [ebx + 0x2a], 0x20
jne 0x52154f
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x1c]
mov eax, dword [esp + 0x4c]
push 0xfffffffffffffffe
push ecx
push edx
push 0x78
push ebp
mov ecx, esi
call fcn.004d6430
add esp, 0x14
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x521a78
mov esi, dword [esp + 0x10]
mov edi, edi
mov eax, dword [ebx + 0x2c]
push 0
push esi
push eax
push 0x78
push ebp
call fcn.004cf760
mov ebx, dword [ebx + 0x14]
add esp, 0x14
test ebx, ebx
jne 0x521560
jmp 0x521a78
mov ecx, dword [esp + 0x44]
neg ecx
sbb ecx, ecx
and ecx, 0xffffe000
add ecx, 0x2000
or cx, 0xc
test byte [ebx + 0x2a], 0x20
movzx edx, cx
mov dword [esp + 0x10], edx
jne 0x5215cb
add dword [edi + 0x48], esi
mov eax, dword [edi + 0x48]
push 0
push eax
push 0
push 0x1a
push ebp
mov dword [esp + 0x28], 0
mov dword [esp + 0x4c], esi
mov dword [esp + 0x78], eax
call fcn.004cf760
add esp, 0x14
jmp 0x52161b
mov eax, ebx
call fcn.004c7600
mov esi, eax
movzx ecx, word [esi + 0x32]
mov eax, dword [edi + 0x48]
mov dword [esp + 0x38], ecx
movsx ecx, cx
lea edx, [eax + 1]
add eax, ecx
push 0
push ecx
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x44]
push eax
mov dword [esp + 0x40], edx
lea edx, [eax + 1]
push 0x3a
push ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x54], eax
mov dword [edi + 0x44], edx
call fcn.004cf760
mov dword [esp + 0x44], eax
add esp, 0x14
mov ecx, esi
mov eax, edi
call fcn.004f8750
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
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 edi
call fcn.00509db0
add esp, 0x1c
mov dword [esp + 0x24], eax
test eax, eax
je 0x521ad7
mov esi, eax
mov ecx, dword [esi + 0x3c]
movzx eax, byte [esi + 0x26]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x18], 0x80
mov dword [esp + 0x74], edx
mov dword [esp + 0x20], eax
je 0x521685
mov edx, dword [esp + 0x4c]
push 0
push 1
push edx
push 0x26
push ebp
call fcn.004cf760
add esp, 0x14
cmp dword [esp + 0x14], 0
je 0x5216d8
movsx eax, word [esp + 0x38]
xor esi, esi
test eax, eax
jle 0x5216ca
jmp 0x5216a0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
movsx ecx, word [edx + esi*2]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
push edx
push ebx
add eax, esi
push ebp
call fcn.004f1150
movsx eax, word [esp + 0x44]
inc esi
add esp, 0xc
cmp esi, eax
jl 0x5216a0
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
jmp 0x5216fd
mov eax, dword [edi + 0x48]
inc eax
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
push 0xffffffffffffffff
push ebx
mov eax, edi
call fcn.004f11e0
add esp, 0x14
cmp eax, dword [edi + 0x48]
mov dword [esp + 0x2c], eax
jle 0x5216fd
mov dword [edi + 0x48], eax
cmp dword [esp + 0x20], 0
je 0x52179b
mov eax, dword [esp + 0x5c]
movzx ecx, word [esp + 0x38]
mov esi, dword [esp + 0x18]
add eax, 2
cdq
push edx
push eax
mov dword [esp + 0x18], ecx
call fcn.004cb940
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x521741
mov edx, dword [esp + 0x24]
push edx
call fcn.004d4a90
add esp, 4
jmp 0x521ad7
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x3c]
inc eax
push eax
push 1
push esi
call fcn.00412eb0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x68]
add esp, 0xc
mov byte [ecx + esi + 1], 0
test eax, eax
jl 0x52176f
sub eax, dword [esp + 0x1c]
mov byte [eax + esi], 0
mov eax, dword [esp + 0x74]
test eax, eax
jl 0x52177f
sub eax, dword [esp + 0x1c]
mov byte [eax + esi], 0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x52178e
mov ecx, ebp
call fcn.004cfb90
mov eax, ebp
call fcn.004cf7f0
mov dword [esp + 0x60], eax
jmp 0x521809
cmp dword [esp + 0x14], 0
je 0x521878
movsx eax, word [esp + 0x38]
inc dword [edi + 0x48]
mov edx, dword [edi + 0x48]
mov esi, dword [esp + 0x14]
push eax
mov dword [esp + 0x34], eax
mov eax, dword [edi]
push eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], 0
call fcn.004d8b90
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
add esp, 4
push eax
push ecx
mov ecx, dword [esp + 0x3c]
push 0x32
push ebp
mov eax, esi
call fcn.004d6430
mov edx, dword [esp + 0x54]
push 0
push esi
push edx
push 0x70
push ebp
call fcn.004cf760
mov esi, dword [esp + 0x4c]
add esp, 0x28
push esi
call fcn.004d4a90
add esp, 4
cmp dword [esp + 0x50], 0
mov esi, dword [esp + 0x20]
jne 0x52189b
mov ecx, esi
neg ecx
sbb cl, cl
and cl, 8
mov dword [esp + 0x30], 0
mov byte [esp + 0x34], cl
cmp esi, 2
jne 0x521841
mov esi, edi
call fcn.004db800
mov esi, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
push 0x38
push ebx
push edi
call fcn.004f9dd0
add esp, 0x20
cmp esi, 2
jne 0x52189b
mov ecx, dword [esp + 0x30]
mov eax, ebp
call fcn.004cf9b0
jmp 0x52189f
push 0
push eax
mov eax, dword [esp + 0x6c]
push eax
push 0x82
push ebp
mov dword [esp + 0x24], 1
call fcn.004cf760
add esp, 0x14
jmp 0x521800
test esi, esi
je 0x5218db
test byte [ebx + 0x2a], 0x10
jne 0x521930
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
cmp byte [ecx + edx], 0
je 0x521930
movsx eax, word [esp + 0x10]
mov esi, dword [esp + 0x2c]
push eax
mov ecx, edx
push ecx
mov ecx, dword [esp + 0x68]
push 0x46
push ebp
mov eax, esi
call fcn.004d6580
add esp, 0x10
jmp 0x521934
cmp dword [esp + 0x14], 0
je 0x521910
mov edx, dword [esp + 0x40]
push 0
push 0
push edx
push 0x6e
push ebp
call fcn.004cf760
mov esi, dword [esp + 0x40]
push 0
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x58]
push esi
push eax
push 0x67
push ebp
call fcn.004cf760
add esp, 0x28
jmp 0x521934
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x64]
push esi
push 0
push ecx
push 0x83
push ebp
call fcn.004cf760
add esp, 0x14
mov dword [esp + 0x54], eax
jmp 0x521934
mov esi, dword [esp + 0x2c]
test byte [ebx + 0x2a], 0x10
je 0x521992
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.004c8eb0
mov dword [esp + 0x58], eax
push ebx
mov eax, edi
call fcn.004d3b40
mov edx, dword [esp + 0x5c]
push 0xfffffffffffffff6
push edx
push 0
push 0xd
push ebp
mov eax, esi
mov ecx, 1
call fcn.004d6430
add esp, 0x18
mov dl, 2
mov ecx, ebp
call fcn.004cf980
mov ecx, edi
call fcn.004c7c90
cmp dword [esp + 0x20], 1
jne 0x5219d8
cmp dword [edi + 0x19c], 0
jne 0x5219df
mov byte [edi + 0x14], 0
jmp 0x5219df
xor ecx, ecx
cmp byte [edi + 0x12], cl
sete cl
or eax, 0xffffffff
cmp dword [esp + 0x44], 0
jne 0x5219b0
mov edx, dword [esp + 0x74]
cmp edx, dword [esp + 0x28]
je 0x5219b0
mov eax, edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x30]
push 0xa
push ecx
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x6c]
push esi
push edx
push eax
push ecx
push ebx
push edi
call fcn.00520f30
add esp, 0x2c
cmp dword [esp + 0x20], 0
je 0x5219fa
mov edx, dword [esp + 0x60]
push edx
mov ecx, ebp
call fcn.004c4a30
mov eax, dword [esp + 0x28]
push eax
call fcn.004d4a90
add esp, 8
jmp 0x521a2b
cmp dword [esp + 0x14], 0
mov esi, dword [esp + 0x54]
push 0
je 0x521a14
mov edx, dword [esp + 0x44]
lea ecx, [esi + 1]
push ecx
push edx
push 8
jmp 0x521a19
push esi
push 0
push 0xe
push ebp
call fcn.004cf760
add esp, 0x14
mov ecx, esi
mov eax, ebp
call fcn.004cf9b0
cmp dword [esp + 0x50], 0
jne 0x521a78
test byte [ebx + 0x2a], 0x10
jne 0x521a78
cmp dword [esp + 0x14], 0
jne 0x521a53
mov eax, dword [esp + 0x28]
push 0
push 0
push eax
push 0x3e
push ebp
call fcn.004cf760
add esp, 0x14
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x521a78
mov esi, dword [esp + 0x48]
mov edi, edi
push 0
push 0
push esi
push 0x3e
push ebp
call fcn.004cf760
mov ebx, dword [ebx + 0x14]
add esp, 0x14
inc esi
test ebx, ebx
jne 0x521a60
cmp byte [edi + 0x12], 0
jne 0x521a90
cmp dword [edi + 0x1a0], 0
jne 0x521a90
push edi
call fcn.004f9b60
add esp, 4
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x18], 0x80
je 0x521ad7
cmp byte [edi + 0x12], 0
jne 0x521ad7
cmp dword [edi + 0x1a0], 0
jne 0x521ad7
mov edx, dword [esp + 0x4c]
push 0
push 1
push edx
push 0x22
push ebp
call fcn.004cf760
push 1
push ebp
call fcn.004d6600
push 0
push str.rows_deleted
push 0
push 0
mov ecx, ebp
call fcn.004daba0
add esp, 0x2c
pop ebp
pop ebx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x521aeb
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x1ec], ecx
mov edx, dword [esp + 0x98]
mov esi, dword [esp + 0x10]
push edx
mov eax, esi
call fcn.004c7a60
mov eax, dword [esp + 0xa0]
push eax
push esi
call fcn.004d15b0
mov eax, dword [esp + 0x40]
add esp, 0xc
test eax, eax
je 0x521b6a
test esi, esi
je 0x521b61
cmp dword [esi + 0x208], 0
je 0x521b34
mov ecx, esi
call fcn.004bf640
pop edi
pop esi
add esp, 0x88
ret
cmp eax, dword [esi + 0x114]
jb 0x521b61
cmp eax, dword [esi + 0x118]
jae 0x521b61
mov ecx, dword [esi + 0x110]
mov dword [eax], ecx
dec dword [esi + 0xfc]
pop edi
mov dword [esi + 0x110], eax
pop esi
add esp, 0x88
ret
push eax
call fcn.004bf5d0
add esp, 4
pop edi
pop esi
add esp, 0x88
ret